1. Technology

Creating Your First Java Program


1 of 9

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
Related Video
Creating Webpage Frames
  1. About.com
  2. Technology
  3. Java
  4. Getting Started
  5. Creating Your First Java Program: Introduction

©2014 About.com. All rights reserved.