Skip to main content
Java Code Completion Easy +10 XP

Main Method Signature

Complete the Java main method.

JavaFill in the blank
public static void ___(String[] args) {
    System.out.println("Hello!");
}

Type the missing code

Show answer and explanation

Answer: main

The entry point of a Java program is always the main method with the signature public static void main(String[] args).

Hint: What is every Java program's entry point?

What this challenge tests

Code Completion in Java: basics, main-method.

Related challenges