Tutorials for Java ,Core java ,Advance java ,oracle ,HTML, CSS, JavaScript, Java and other programming language tutorial Learn Java tutorial for beginners with examples in eclipse online. Java tutorial point for core java, servlet, jsp, struts, spring, for learning web technologies online. Content includes tutorials and references relating to HTML, CSS, JavaScript, PHP, AngularJS, SQL, Bootstrap, Node.js, and jQuery this is a website like w3school tutorialspoint etc

Search This Blog


Header Ads

Monday, 28 May 2018

Command line arguments & main() method


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



No comments:

Post a Comment