Method main in Java
The main() method is the entry point to the program. An application can have several such methods. If the method is absent, then compilation is possible, but at startup the error `Error: Main method not found` will be received.
public static void main(String[] args) {}
Read also:
- How are JRE, JVM and JDK different
- What are the access modifiers in Java
- What does the final keyword say
Comments
Post a Comment