I have following class.
public class Test {
public static void main(Integer[] args) {
System.out.println(\"This is not a main\");
}
As others have said, the main
method will always be called by the JVM with the overload that takes a string array. You are free to make other overloads to that metod if you so wish. You may even call them yourself in your code. It's just that the VM specifically looks for that one overload that takes an array of strings.