0

can we use multiple main methods in single class in java language ?

12th Mar 2018, 6:58 AM
Girish Nagar
Girish Nagar - avatar
2 odpowiedzi
0
Yes we can overload main method in java. But the program execution will always start with public static void main (String[] args) Other main methods will work as normal methods. So you have to call them explicitly.
12th Mar 2018, 8:44 AM
Ankit Saxena
Ankit Saxena - avatar
0
You could write more but when running only one would get executed
12th Mar 2018, 7:03 AM
Daniel S
Daniel S - avatar