Discussion Forum : Introduction To Methods And Streams
Question -

Which method can be defined only once in a program?

Options:
A .  main method
B .  finalize method
C .  static method
D .  private method
Answer: Option A

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

main() method by java's run time system.




Was this answer helpful ?
Next Question
Submit Your Solution hear:

Your email address will not be published. Required fields are marked *