Saturday, December 24, 2016

JAVA BASICS Hello World

Tags

Java is a high-level programming language originally developed by Sun Microsystems
which was initiated by James Gosling  and released in 1995.

Java Basic Program Hello World :


public class JavaApplication1
 {

    public static void main(String[] args)   //main function
    {
        System.out.println("Hello World");  //for output
    }
    

 }


Output:




Points To Remember:
1. Java is case sensitive so be careful about upper case and lower case alphabets.
2. While using Netbeans the name of class must be same as project name and using Notepad the name of file must be same as the class name with .java extension.
3.Rules for identifiers must be followed.