Java

  1. Home
  2. Computing & Technology
  3. Java

Creating Your First Java Program

By Paul Leahy, About.com

1 of 9

Introduction

Printing Hello World to the Computer Screen

Microsoft product screen shot(s) reprinted with permission from Microsoft Corporation.

Note: Before you start this tutorial, you must have downloaded and installed the Java SE Development Kit.

It’s traditional to start learning a new programming language by writing a program called "Hello World". You can think of it as a very simple initiation into the ranks of Java programmers. All the program does is write the text "Hello World!" to your computer screen.

The basic steps we will follow for our Hello World program are:

  1. Write the program in Java
  2. Compile the source code
  3. Run the program

1 of 9

Explore Java

More from About.com

Java

  1. Home
  2. Computing & Technology
  3. Java
  4. Getting Started
  5. Creating Your First Java Program

©2008 About.com, a part of The New York Times Company.

All rights reserved.