i mport java.io.*; class example { public static void main(String args []) { System.out.println ("Hello Java"); } } Let's look at how to save the file, compile and run the program. Please follow the steps given below: Open notepad and add the code as above. Save the file as: example.java . Open a command prompt window and go o the directory where you saved the class. Assume it's C :\. Set the path Type ' javac example .java ' and press enter to compile your code. If there are no errors in your code, the command prompt will take you to the next line (Assumption : The path variable is set). Now, type ' java example ' to run your program. You will be able to see ' Hello Java ' printed on the window. Understanding first java ...