Home Context: "Hello, World!"
Post
Cancel

Context: "Hello, World!"

“Hello, World!” is symbolic of firsts.

Definition

The phrase refers to a small demo program whose goal is to send the message "Hello, World!". It is often the simplest program one can write in a language, and for this reason is also the first program many will encounter.

(For most languages, anyway.)

Purpose

A Hello World program showcases the minimum syntax necessary to get a working program. Its simplicity makes it ideal for demonstration, especially for people without coding experience.

There are many analogs of this idea across different media.

Examples

1
console.log("Hello, World!")

1
print("Hello, World!")

1
puts "Hello, World!"

1
2
3
4
5
public class Main {
    public static void main(String args[]) {
        System.out.println("Hello, World!");
    }	
}

1
2
3
4
5
6
#include <iostream>

int main() {
    std::cout << "Hello, World!" << std::endl;
    return 0;
}
This post is licensed under CC BY 4.0 by the author.
Contents