public class helloWorld // Dilip Barman October 6, 1997 // This is my first java program! // The file name is the same as the class name, followed by .java ... // so this is file helloWorld.java // This returns an HTML page. First compile the program (javac helloWorld.java) // to get helloWorld.class. If we ran this from a command line, we would then // execute the program (java helloWorld). { // Instance and class variable definitions would go here // Method definitions follow - we just have one, main() public static void main(String args[]) { System.out.println ("200 OK\n"); // HTML Status - all OK System.out.println ("Content-Type: text/html \n\n"); System.out.println ("Dilip's 'Hello, World!' java Program

Dilip's Hello World program

"); System.out.println ("

"); System.out.println ("Hello, World!\n"); System.out.println (""); System.out.println ("\n

The "); System.out.println (""); System.out.println ("java source code is available."); } // end main() } // end class definition