00:01
Hello student, the static keyword is crucial here.
00:04
If you make a mistake and forget to put the static keyword in the main method declaration so you will encounter an error and your program will not run as expected.
00:15
So here what will happen, no .1 compilation error when you attempt to compile your java program without using the static keyword in the main method, the java compiler will produce an error.
00:26
So here error message what will be the if i write public i am not using the static keyword so public void main so here error will be main method not found in the class your class name so please define the main method as public static void main.
00:46
So here the error is coming and in the error it is clearly mentioned use this public static void main.
00:54
So this is the compilation error.
00:56
The second thing may happen when the program execution failure.
01:00
So program execution failure if you manage to compile the program without the static keyword but still run it you will encounter a run time error.
01:11
So jvm java virtual machine will not be able to find the entry point.
01:32
What will be the entry point here main method...