What is the main Method?
Every Java program must have one main method. The main method is the first method which the Java Virtual Machine executes. The main method then calls the other methods, as they are needed.
Main method is often written as main() method.
It is good programming practice to maintain a very small main method and to move all possible code into other methods.
|
Bookmark What is the main Method?

