0
can we use multiple main methods in single class in java language ?
2 Answers
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.
0
You could write more but when running only one would get executed