The main method has to be "public static" because of the following reasons. (Two options)

  1. static because it has to be constant and cannot be changed.

  2. static because it has to be loaded by the JVM without instantiating it

  3. public because other classes may also call the main method of a class

  4. public because JVM has to have access to the main method in order to call it.


Correct Option: B,D

Find more quizzes: