Completing a code to display a greeting message

Report a typo

You're developing a basic Java program that will output a greeting message to the console. Given the partial code, fill in the blanks to complete a Java program that will print the phrase "Hello, World". Use appropriate methods and keywords to declare the main entry point of the Java program and print the message.

Fill in the gaps with the relevant elements
  HelloWorld {
    public static void main([] args) {
        String greeting = "Hello, World";

        (greeting);
    }
}
System.out.printlnStringpublicclass

Create a free account to access the full topic