Java Examples
Java Examples
memu home questions

Hello World Example

This is the classic hello world example.

Source: (

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


# java HelloWorld
Hello, World   

Questions answered by this page:

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

Related Examples: