Command line arguments & main() method
JVM always calls main method to start the program. Compiler is not responsible to check whether the class contain main() or not. Hence if we are not the main method we won’t get any C.E. But at runtime JVM raises NoSuchMethodError:main
If we perform any changes in main() we will get NoSuchMethodError:main() at runtime. But no C.E. The main() can be declared as final and synchronized