First Java Program from Command Prompt
 Open Notepad and type java program. Save into c:\sunilos folder with file name HelloNotepad.java. Do remember your file name and class name must be same.
 Open command prompt by Start->Run -> cmd command and go to root c:\
 Go to c:\sunilos folder and compile program with help of javac HelloNotepad.java
 It will create HelloNotepad.class file in the same folder.
 Now execute program with help of java HelloNotepad Console output will be >Hello Notepad