Programming Languages

283 articles in this topic

Lambda Expressions in Java: From Syntax to Streams with Runnable Examples

Learn Java lambdas from an anonymous class onward, then trace target types, stream operations, captured variables and common compiler failures with exact outputs.

Updated 12 Nov 20266 min readJava

Python Virtual Environments and Pip: A Runnable Project Setup Tutorial

Build two isolated Python projects from zero, check exactly where pip installs a package, and reproduce a working setup from a requirements file.

Updated 12 Nov 20265 min readPython

Imperative Programming Structure and Flow Control: Concepts, Trace Table and Exam Traps

Learn how commands change state, how branches and loops choose the next command, and how to trace continue and break without losing track of values.

Updated 11 Nov 20265 min readProgramming Languages Survey

Data Types in C++: Fundamental and Derived Types with Worked Examples

Learn how C++ fundamental types differ from arrays, pointers, references, and function types. Trace one complete program, then test the conversion traps.

Updated 11 Nov 20265 min readC++

JVM Architecture in Java: Class Loading, Memory Areas and a Bytecode Trace

Trace a runnable Java program from source to class files, class initialization, run-time memory areas and selected bytecode instructions.

Updated 11 Nov 20265 min readJava

Python Testing with unittest and pytest: Runnable Tests, Fixtures and Mocks

Build one score-normalisation example from a plain Python function into unittest and pytest suites, then add fixtures, tmp_path, mocks and boundary exercises.

Updated 11 Nov 20266 min readPython

Elementary Data Types, Constants, Variables and Expressions: A Worked Evaluation Guide

Trace a typed pseudocode example from declarations to stored results, then see how assignment, precedence and conversion change the answer.

Updated 10 Nov 20266 min readProgramming Languages Survey

C++ Constructors and Object Initialization: Techniques, Order and a Worked Trace

Learn how C++ chooses default, parameterised, delegating and copy constructors, then trace member states and initialization order through complete code.

Updated 10 Nov 20266 min readC++

Functional Interfaces in Java: SAM Rules, Lambdas and Runnable Examples

Build functional interfaces from zero, replace an anonymous class with a lambda, select standard interfaces by shape, and avoid common compiler traps.

Updated 10 Nov 20265 min readJava

Regular Expressions in Python: A Runnable Tutorial from First Match to Log Parser

Learn Python regex by running small examples, reading exact match spans and building a structured parser for three log records.

Updated 10 Nov 20265 min readPython

Static vs Dynamic Binding: Compile-Time Selection and Runtime Dispatch with a Worked Java Trace

See exactly what the Java compiler selects and what the runtime receiver can change. One program, six outputs, and declared-type variations make the two stages visible.

Updated 9 Nov 20266 min readProgramming Languages Survey

Virtual Functions MCQs: 11 Solved C++ Runtime Polymorphism Questions

Test C++ virtual dispatch with 11 solved exam MCQs, worked explanations and three code traces covering final overriders and safe base-class destruction.

Updated 9 Nov 20267 min readC++