dcsimg

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.