The Java Programming Language

Hello world! Example Program


Click below to go directly to a specific section:
Description | Source Code | Sample Run | Program Notes

Description

This program demonstrates the text output function of the Java programming language by displaying the message "Hello world!".

Source Code

class HelloWorld {
    public static void main(String args[])
    {
        System.out.println("Hello world!");
    }
}
Click
here to download a zip file containing the source code.

Sample Run

Hello world!

Click here to download a zip file containing a Java executable class.


Program Notes

This program was compiled and run using the Java Developers Kit, Version 1.0.2, for Win32 on x86 from Sun Microsystems running under Windows 95.
[Back] [Home]

Last modified: 09:55 PM on 11/24/1996