can you use the two main method in same class?how?

Answer Posted / rajasekhar

yes

it is possible by using static inner class concept

Is This Answer Correct ?    4 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the difference between jdk and jre?

834


Which class contains a method: cloneable or object?

776


What are the parts of a method?

761


If a class is declared without any access modifiers, where may the class be accessed in java programming?

898


What purpose do the keywords final, finally, and finalize fulfill?

869


Can we have multiple classes in single file ?

824


What is console based application in java?

796


What is the use of protected in java?

756


What are the disadvantages of using inner classes?

782


Tell us something about different types of casting?

713


How to avoid memory leak in java?

846


What are class members by default?

855


Can a constructor have different name than a class name in java?

838


Explain a situation where finally block will not be executed?

780


What is unicode used for?

834