What happens when a main method is declared as private?

Answer Posted / vani

Nothing Happen.
Code compiles properly and executes properly.

Is This Answer Correct ?    5 Yes 76 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

how is final different from finally and finalize in java?

612


What is the properties class in java programming?

557


What are synchronized blocks in java?

608


How can I debug the Java security exceptions and AccessControlExceptions?

640


How can we make copy of a java object?

553






What do you mean by hashing?

647


What is string substring?

563


What is the difference between multitasking and multithreading in Java

728


What is the final access modifier in java?

619


What is meant by class loader? How many types are there?

678


What is the concatenation operator in java?

582


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

520


What is string length in java?

495


What does jre stand for?

611


How hashmap works in java?

573