What happens when a main method is declared as private?

Answer Posted / ashish

it compile easily... but it will give an error at the time
of execution .....

Is This Answer Correct ?    12 Yes 5 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Is cout buffered?

691


when to use ArrayList and when to use HashMap in webApplication.

3892


What a static class can contains?

700


What are the drawbacks of singleton class?

542


What is command line argument in java?

612






What are classloaders?

601


How many types of equations are there?

544


Can we override final method?

571


Differece between class and generic class?

568


What are the disadvantages of using inner classes?

561


What is difference between identifier and variable?

477


What is the use of parse function in java?

517


What do you understand by classes in java?

568


Explain throw keyword in java?

618


Is a boolean variable?

523