Ask Question

What is the purpose of main () in java?

+4
Answers (1)
  1. 1 September, 21:23
    0
    The purpose of it is to use and contribute all other static or nonstatic methods into this one method so it won't give a static error and it can input variables and is the main body of code.
Know the Answer?
Not Sure About the Answer?
Find an answer to your question 👍 “What is the purpose of main () in java? ...” in 📗 Advanced Placement (AP) 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