Ask Question

All java classes must contain a main method which is the first method executed when the java class is called upon.

+5
Answers (1)
  1. 23 April, 23:34
    0
    This is false. Not all java classes need a main method. You can create you own class below the class with the main method and put your own user-created methods into it. Classes without a main method can be in its own separate class even.
Know the Answer?
Not Sure About the Answer?
Find an answer to your question 👍 “All java classes must contain a main method which is the first method executed when the java class is called upon. ...” in 📗 Computers & Technology if the answers seem to be not correct or there’s no answer. Try a smart search to find answers to similar questions.
Search for Other Answers