What happens when a main method is declared as private?

Answer Posted / pankaj kumar

i have checked it using c# in visual Studio.
then i found that there is no error in compilation or in run.
it is giving right output as we want without any error.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Name container classes in java programming?

586


Is hashset ordered?

541


What is <> used for in java?

663


What is the purpose of sizeof operator?

524


In a program, initializing an array of 100 KB is throwing an out of memory exception while there is 100 MB of memory available. Why?

565






What is the program development process?

554


What is the use of hashmap in java?

543


What is the longest unicode character?

689


If you do not want your class to be inherited by any other class. What would you do?

555


How many types of variables are there?

662


How to pass arraylist to stored procedure in java?

536


Why is singleton class used?

515


What is Classloader in Java?

629


Can we convert integer to string in java?

588


What is the use of coding?

515