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