Is it possible to start an application (from command line) from a method other than main?

RamaChandra Murthy

No, it is not possible to start an application from a method other than main, as the runtime system will look for a method i.e., public static void main. If the method is not found we get an error by name java.lang.NoSuchMethodError.

0 Comments  (click to add your comment)
Comment and Contribute

 

 

 

 

 


(Maximum characters: 1200). You have 1200 characters left.

 

 

About | Sitemap | Contact