javacodex.com
Java Examples
Java Examples
memu home questions

Hello World Example

This is the classic hello world example.

Source: (HelloWorld.java)

public class HelloWorld {
   public static void main(String[] args) {
      System.out.println("Hello, World");
   }
}
 

Output:

# java HelloWorld
Hello, World   

Questions answered by this page:

How to write hello world in java? Creating your first java program.

Related Examples:


Contact: javacodex@yahoo.com