Snippets‎ > ‎Java Examples‎ > ‎

Hello World Java Example for Windows

BY MARKUS SPRUNCK


You need a running installation of Java Runtime Environment (JRE). If you haven't installed one, you may read Download Java for Windows for a detailed description of the installation. 

1
2
3
4
5
6
public class Hello {

    public static void main(String[] args) {
        System.out.print("Hello World!");
    }
}

Expected Result

The file hello.class has a size of 414 Bytes.

Links

Sponsored Link