Declaration of main function — The main method is the main entry point to the program. Program execution begins with the main method. The syntax of main method declaration is public static void main(String args[]) { /*body of main method*/ } The statements of a Java program are terminated with a semi-colon.
Read moreHow do I code Java in notepad?
Note: We are considering that Java is properly installed and the path is properly set in your system.
Read more