Pages

Monday, February 6, 2012

1st Java Program


class Hello{
               public static void main(String[] args){
               System.out.println("Hello,Welcome to JAVA ");
     }
}




Save this file as a  " Hello.java "  
To Compile  :- Go to command prompt and type javac Hello.java and press enter ..

To Rum        :- Again type java Hello 
we'r using save name (Hello.java  for compile and class name (Hello) for run the program.

No comments:

Post a Comment