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

Can you instantiate the math class in Java?

599


Is there any difference between nested classes and inner classes?

528


What is a singleton factory?

500


What exceptions occur during serialization?

595


What are three ways in which a thread can enter the waiting state in java programming?

673






What are inbuilt functions?

559


Can bool be null?

515


I am unable to find or learn about print command. I have a graphical program in core java in applet but i want to give print command but i have coding for that so if anyone know about this plz mail me on avdhesh_chauhan007@yahoo.co.in

1587


Is constructor inherited?

524


Do extraneous variables affect validity?

520


What happens if we override private method?

518


What is array size in java?

488


What is the public field modifier?

536


Why is the type for real numbers called double?

536


What does int [] mean in java?

522