Home » JAVA Programming » Methods » Question
  1. Which of these is the method which is executed first before execution of any other thing takes place in a program?
    1. finalize method
    2. private method
    3. main method
    4. static method
    5. None of these
Correct Option: D

If a static method is present in the program then it will be executed first, then main will be executed.



Your comments will be displayed only after manual approval.