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.
This exercise is part of the course
Introduction to Java
Exercise instructions
- Add the appropriate keyword instead of the
____
.
Hands-on interactive exercise
Have a go at this exercise by completing this sample 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.");
}
}