标题: [Oracle interview]Can an application have multiple classes having main method? [打印本页] 作者: 李刚 时间: 2013-8-16 14:46 标题: [Oracle interview]Can an application have multiple classes having main method? 作者: 曹凯 时间: 2013-8-16 14:59
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.