Source Code

Businessman using laptop in restaurant
Hero Images/Getty Images

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. All 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!");
   }
} 
Format
mla apa chicago
Your Citation
Leahy, Paul. "Source Code." ThoughtCo, Jun. 2, 2017, thoughtco.com/source-code-2034292. Leahy, Paul. (2017, June 2). Source Code. Retrieved from https://www.thoughtco.com/source-code-2034292 Leahy, Paul. "Source Code." ThoughtCo. https://www.thoughtco.com/source-code-2034292 (accessed April 22, 2018).