Skip to content

Programming Language Comparisons ⚖️

Mentor's Note: Learning your first language is hard. Learning your second is easy! This page helps you see that while Syntax changes, the Logic is universal. 💡


🏗️ Core Logic Side-by-Side

1. Printing to Screen

How to say "Hello" to the world.

Language Code Syntax
Python print("Hello")
Java System.out.println("Hello");
C printf("Hello\n");
JavaScript console.log("Hello");
PL/SQL DBMS_OUTPUT.PUT_LINE('Hello');

2. Variables (Storing Data)

Labeled boxes for your information.

Language Code Syntax Type
Python x = 5 Dynamic 🪄
Java int x = 5; Static 🧱
JavaScript let x = 5; Dynamic 🪄
PL/SQL v_x NUMBER := 5; Static 🧱

🚦 Logic & Control Flow

3. Conditional (If-Else)

Making decisions based on a condition.

if age >= 18:
    print("Vote ✅")
else:
    print("Wait ⏳")
if (age >= 18) {
    System.out.println("Vote ✅");
} else {
    System.out.println("Wait ⏳");
}
IF v_age >= 18 THEN
    DBMS_OUTPUT.PUT_LINE('Vote ✅');
ELSE
    DBMS_OUTPUT.PUT_LINE('Wait ⏳');
END IF;


💡 Pro Tip: "One interface, multiple implementations—that's the power of being flexible!" - Anonymous