I was wondering what the effect of creating extra main methods would do to your code.
For example,
public class TestClass {
public static void ma
This is perfectly fine. Having multiple main
methods doesn't cause any problems. When you first start a Java program, execution begins in some function called main
in a class specified by the user or by the .jar file. Once the program has started running, all the other functions called main
are essentially ignored or treated like other functions.