Saturday 28 July 2012

Printing Hello World In Java(J2SE)

J2SE Programming

Here now we go for our first program i.e. printing hello world in java.

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

Now compile it as show in fig.
Firstly you have to move into the directory where the file is saved(use cd to move between Directories )


Print hello world in java

Once you have compiled it then Run it as Shown in fig below

Print hello world in java


1 comments: