No, the JVM does not directly execute an overloaded main() method. When a Java application starts, the JVM looks specifically for the method with the signature public static void main(String[] args) and begins execution from that method only.
A class may contain main(int x) or main(String arg), but the JVM will still start execution from main(String[] args).
public class Main {
public static void main(String[] args) {
System.out.println("Standard Main Method");
main(100);
}
public static void main(int number) {
System.out.println("Overloaded Main Method");
}
}A concise interview answer is
No, the JVM executes only the standard public static void main(String[] args) method. Overloaded main() methods are not called automatically by the JVM, but they can be invoked explicitly from the standard main() method.
Last updated: 16 July 2026
Previous question: Can we overload the main method?
Next question: What is the difference between primitive and non-primitive data types in Java?