Java Hello World Program


Java "Hello, World!" Program

In this tutorial, you will learn to write the "Hello World" program in Java.

Java Hello World Program to Learn Java Programming - TechVidvan

A "Hello, World!" is a simple program that outputs Hello, World! on the screen. Since it's a very simple program, it's often used to introduce a new programming language to a newbie.


Let's explore how Java "Hello, World!" program works.

Java "Hello, World!" Program

// Your First Program

class HelloWorld {
    public static void main(String[] args) {
        System.out.println("Hello, World!");
    }
}

Output

Hello, World!

Post a Comment

Post a Comment (0)

Previous Post Next Post