These classnotes are depreciated. As of 2005, I no longer teach the classes. Notes will remain online for legacy purposes

JAVA01/Hello World

Classnotes | JAVA01 | RecentChanges | Preferences

Using what we have just learned, write a program that prints "Hello World!" on the screen. Be sure to comment it such that you can know later on that this was your first Java program.

Save the program as "Hello.java", calling the main class "Hello". When you have done that, compile it using the Java bytecode compiler:

 C:\> javac Hello.java

Debug as needed, and then execute the bytecode binary:

 C:\> java Hello



Classnotes | JAVA01 | RecentChanges | Preferences
This page is read-only | View other revisions
Last edited May 27, 2003 8:40 pm (diff)
Search:
(C) Copyright 2003 Samuel Hart
Creative Commons License
This work is licensed under a Creative Commons License.