Multiple choice

Which of the following keywords in the declaration of the main method declares the method as one that belongs to the entire class and not a part of any object of the class?

  1. Public

  2. Static

  3. Void

  4. None of these

Reveal answer Fill a bubble to check yourself
B Correct answer
Explanation

This keyword declares the method as one that belongs to the entire class and not a part of any object of the class.