李刚 发表于 2013-8-16 14:46:20

[Oracle interview]Can an application have multiple classes having main method?

曹凯 发表于 2013-8-16 14:59:36

Yes it ispossible. 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 havementioned. Hence there is not conflict amongst the multiple classes havingmain method.
页: [1]
查看完整版本: [Oracle interview]Can an application have multiple classes having main method?