+ 15
Over-simplification answer: Because during run-time there's no object created for the class containing the main method. You can imagine that the JVM invoke something like this: MyClass.main(); instead of go through the hassle of creating new object if it's non-static: MyClass obj = new MyClass(); obj.main();
23rd Nov 2017, 3:44 PM
Zephyr Koo
Zephyr Koo - avatar