1. Home
  2. Computing & Technology
  3. Java

Source Code

By , About.com Guide

Definition:

Programmers write software programs using a programming language, e.g., Java. The programming language provides a series of instructions they can use to create the program they want. The instructions a programmer uses to build the program are known as source code.

For a computer to be able to execute the program, these instructions need to be translated using a compiler.

Examples:

Here is the source code for a simple Java program:

class HelloWorld {
   public static void main(String[] args) {

      //Write Hello World to the terminal window
      System.out.println("Hello World!");
   }
}

Glossary:

# A B C D E F G H I J K L M N O P Q R S T U V W X Y Z

Explore Java
About.com Special Features

Holiday Central

What to eat, where to go, fun things to do and how to save money on the perfect gifts. More >

Family Tech Center

Stay connected and entertained with reviews on tips on the latest HDTVs, cellphones and more. More >

  1. Home
  2. Computing & Technology
  3. Java
  4. Java Glossary
  5. S
  6. Definition for the term: Source Code>

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

All rights reserved.