This is the Hello World Java Program. Save this Program as Hello.java

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

To compile this program write at command prompt

javac Hello.java

To run this program type

java Hello

It will not do anything great only display Hello World 🙂 !!!! at the console but this is the 1st step for any Java Programmer.

We will get deep into Java soon 🙂

Snapshot

Hello World Java Program

Advertisements