Java Program to display "Hello, World!"


This content was proof-read by Grammarly. You can Try Grammary for FREE

Problem

Write a program in Java to display “Hello, World!” on the screen.

Java Program to display “Hello, World!” in Console Window.

This is a simple Java program that displays “Hello, World!” on the console window.

public class HelloWorld{
     public static void main(String []args){
        // AC. Display Hello,World in console.
        System.out.println("Hello World");
     }
}

Output

Hello, World!

%d bloggers like this: