filmov
tv
Does every class need a main method Java?

Показать описание
Does every class need a main method Java?
Is the Main method must needed in a Java program? - Stack Overflow
May 24, 2010
Without a main method you application will have no entry point. Yes, it is required for any executable program. If you try to execute a Java class, the JVM will look for a main method to invoke it. ... Not all classes need a main , only the one that serve as "entry point" for execution.
Is the Main method must needed in a Java program? - Stack Overflow
May 24, 2010
Without a main method you application will have no entry point. Yes, it is required for any executable program. If you try to execute a Java class, the JVM will look for a main method to invoke it. ... Not all classes need a main , only the one that serve as "entry point" for execution.