Home » JAVA Programming » Basic Syntax » Question
  1. Which of the below is invalid identifier with main method?
    1. private
    2. final
    3. static
    4. public
    5. None of these
Correct Option: A

main method cannot be private as it is invoked by external method. Other identifier are valid with main method.



Your comments will be displayed only after manual approval.