JS
JAVA

What Is Java?

Java is a general-purpose, class-based, object-oriented programming language designed for having lesser implementation dependencies.

  • 4.5/5.0
  • Last updated 13 September, 2022
  • By Admin

It is a computing platform for application development. Java is fast, secure, and reliable, therefore. It is widely used for developing Java applications in laptops, data centers, game consoles, scientific supercomputers, cell phones, etc.

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

A "Hello, World!" is a simple program that outputs Hello, World! on the screen. Since its a very simple program, its 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!

I hope it can help you...