Simple Java Program
public class MyFirstApp
{
public static void main ( String[] args)
{
System.out.println("Hello World");
} // main method
} // MyFirstApp class
1] public is for that everyone can access it.
2] MyFirstApp is the name of class.
3] String[] for arguments to the method. This method must be given an array of Strings,and the array will be called ‘args’.


