+ 4

Can we define more than one main method in a single class in java????

18th Aug 2017, 8:49 AM
Shivam Aneja
Shivam Aneja - avatar
7 ответов
+ 8
absolutely right @Serena 😋😋 complete signature of main method is knwn as JVM specific main method
18th Aug 2017, 1:44 PM
Shivam Aneja
Shivam Aneja - avatar
+ 2
1 main entry point per class.
18th Aug 2017, 9:06 AM
D_Stark
D_Stark - avatar
+ 1
@Serena im curious if you overload main jvm will always run from the first main in class? You cant actually decide to execute from a diffrent entry point in same class right?
18th Aug 2017, 9:15 AM
D_Stark
D_Stark - avatar
+ 1
@ serena good stuff thanks
18th Aug 2017, 1:50 PM
D_Stark
D_Stark - avatar
0
thanks
16th Apr 2018, 10:05 PM
hakime dt