Java Hello World

Here is a basic hello world java program. Run the following to compile and run it.

$ javac
$ java HelloWorld

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

Share this article: share on Google+ share on facebook share on linkedin tweet this submit to reddit


Click here to write/view comments