CommencerCommencer gratuitement

Java's entry point

The public static void main(String[] args) is where a Java program starts. It's your gateway to writing and running Java code!

Let's get started by making sure the program has a proper entry point.

Cet exercice fait partie du cours

Introduction to Java

Afficher le cours

Instructions

  • Add the appropriate keyword instead of the ____.

Exercice interactif pratique

Essayez cet exercice en complétant cet exemple de code.

class SecondJavaApp {

	// Replace the ____ below with the necessary keyword
    public static void ____(String[] args) {
    
    	System.out.println("Java starts code execution in the main.");
    }
}
Modifier et exécuter le code