JVM will always check for specific method signature to start running an application, and that would be --
public static void main(String args[]).
public - is an access modifier of the main method. It has to be public so that java runtime can execute this method.
static - there is no object of the class present. That’s why the main method has to be static so that It can be accessed without creating the instance of a Class.
void - ava main method doesn’t return anything, that’s why it’s return type is void.
main - main method is searched by JVM as a starting point for an application with a particular signature only.
String[] args - main method accepts a single argument of type String array. This is also called as java command line arguments.
FIRST JAVA PROGRAM --
• FIRST JAVA PROGRAM || EXECUTION || NOTEPAD...
SET PATH IN JAVA --
• SET PATH IN JAVA || TEMPORARY & PERMANENT ...
Thanks for watching...