Java "Hello, World!" Program
In this tutorial, you will learn to write the "Hello World" program in Java.
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!
إرسال تعليق