Back to Top

Monday 16 January 2012

JAVA : Can an application have multiple classes having main method?

  Yes it is possible. While starting the application we mention the class name to be run. The JVM will look for the Main method only in the class whose name you have mentioned. Hence there is not conflict amongst the multiple classes having main method.

1 Responses to “ JAVA : Can an application have multiple classes having main method? ”

Gayathri said...
26 May 2012 at 15:55

what is the difference between java and SAP?


Post a Comment

Popular Posts

Subscribe via Email
Subscribe Java Interview Questions via Email
All Rights Reserved JAVA INTERVIEW QUESTIONS | Privacy Policy | Anijit Sarkar