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 an application that illustrates method overriding in the same package and different packages. Also demonstrate accessibility rules in inside and outside packages

Describe abstract class called Shape which has three subclasses say Triangle, Rectangle, and Circle. Define one method area()in the abstract class and override this area() in these three subclasses to calculate for specific object.

Write a program in Java to perform I/O operations on a Text file.