What is the use of public access modifier inpublic static void main(String args[]) in java

Showing Answers 1 - 2 of 2 Answers

Romesh Sharma

  • Sep 6th, 2006
 

We use public access specifier with main method because it is accessed by the code outside its class.It is called by the JVM which is outside the class.

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions