Hello, World! But First, Let’s Install the World...


Here’s a quick installation + "Hello World" guide for Java, Python, C++, and JavaScript—perfect for beginners starting DSA or basic programming.
1. C++
Installation:
Mac: Use Homebrew →
brew install gcc
Linux:
sudo apt install g++
Compile & Run:
g++ hello.cpp -o hello
./hello
Hello World:
#include <iostream>
using namespace std;
int main() {
cout << "Hello World";
return 0;
}
2. Java
Installation:
Install Java JDK
Set
JAVA_HOME
and add to PATH
Compile & Run:
javac Hello.java
java Hello
Hello World:
public class Hello {
public static void main(String[] args) {
System.out.println("Hello, World!");
}
}
3. Python
Installation:
Download from python.org
Linux/macOS: Usually comes pre-installed
Run:
python hello.py
# or sometimes: python3 hello.py
Hello World:
print("Hello, World!")
4. JavaScript
Installation:
Install Node.js
Comes with
node
andnpm
Run:
node hello.js
Hello World:
console.log("Hello, World!");
Optional IDEs (All Languages)
VS Code (Install language extensions for C++, Java, Python, JS)
Replit (Browser-based IDE for all languages)
JetBrains IDEs: IntelliJ (Java), CLion (C++), PyCharm (Python), WebStorm (JS)
Subscribe to my newsletter
Read articles from the_OldSchool_coder directly inside your inbox. Subscribe to the newsletter, and don't miss out.
Written by

the_OldSchool_coder
the_OldSchool_coder
I am a passionate full-stack web developer with expertise in designing, developing, and maintaining scalable web applications. With a strong foundation in both front-end and back-end technologies, I specialize in creating dynamic user experiences and robust server-side solutions. Proficient in modern frameworks like React, Angular, Node.js, and Django, I thrive on crafting efficient, clean code and optimizing performance. Whether building RESTful APIs, designing responsive interfaces, or deploying applications to the cloud, I bring a results-driven approach to every project.Let me know if you'd like to customize it further, perhaps including your specialties or experience level!