Home » JAVA Programming » Methods » Question
  1. Which method can be defined only once in a program?
    1. private method
    2. static method
    3. finalize method
    4. main method
    5. None of these
Correct Option: D

main() method can be defined only once in a program. Program execution begins from the main() method by java runtime system.



Your comments will be displayed only after manual approval.