why can create object of main class in java code example
Example: Does JVM create object of Main class (the class with main())?
“No”. We have studied that the reason for main() static in Java is to make sure that the main() can be called without any instance.