Set Java Environment, Compile and execute sample java program to print “Hello World”.

 

AIM: Set Java Environment, Compile and execute sample java program to print “Hello World”.

 

CODE:

public class hello

{

            public static void main(String args[])

            {

                        System.out.println("Hello World");

            }

}

 

OUTPUT:



Comments

Popular posts from this blog

Write a program in Java to demonstrate use of final class.

Write a java program to create 3 threads using Thread class. Three threads should calculate the sum of 1 to 5, 6 to 10 and 11to 15 respectively. After all thread finishes main thread should print the sum and average.

Write a program in Java to demonstrate single inheritance, multilevel inheritance and hierarchical inheritance.