Programming Languages

117 articles in this topic

Operator Overloading in C++: Syntax, Rules, and Worked Examples

Learn what C++ calls for an overloaded operator, then test addition, stream output, increment, and fraction comparison with exact values.

Updated 31 Aug 20266 min readC

Java Iterators and Comparators: Runnable Examples, Sorting Rules and Common Traps

Learn when to use Iterator, Comparable and Comparator through one Java 17 Student example, exact outputs, cursor traces and safe sorting rules.

Updated 31 Aug 20265 min readJava

Python Variables and Data Types: Beginner Tutorial with Worked Examples

Learn how Python names bind to objects, how built-in types behave, and why conversion and mutation matter. Trace a complete learner record and test yourself with runnable examples.

Updated 31 Aug 20265 min readPython

Programming Languages MCQs: 12 Solved Questions on Definition and Purpose

Build the foundations behind basic programming-language questions, then solve 12 published MCQs on translators, errors, pseudocode, parameters and language quality.

Updated 30 Aug 20267 min readProgramming Languages Survey

C++20 Modules: Interface Units, Imports and Build Order with a Worked Library Split

Follow one small C++20 module from its exported interface through a hidden implementation and importing client. Trace the result and build dependency graph.

Updated 30 Aug 20266 min readC++

Inheritance in C++ Tutorial: Types, Access Modes and Runnable Examples

Learn what a derived class receives from its base, how access modes transform members, and how construction and virtual dispatch work through runnable examples.

Updated 30 Aug 20265 min readC

Java Concurrent Collections Tutorial: Runnable Map, List, and Queue Examples

Choose a Java concurrent collection from its access pattern, then run three deterministic examples that show atomic updates, snapshot traversal, and bounded hand-off.

Updated 29 Aug 20265 min readJava

Strings in Python: Indexing, Slicing, Methods and Worked Examples

Build a reliable mental model for Python strings, then practise it through exact outputs, common traps and a complete record-cleaning program.

Updated 29 Aug 20266 min readPython

Classes in JavaScript: A Practical Tutorial with Runnable Examples

Learn what class syntax adds to JavaScript by building and extending a BankAccount. Trace exact values, repair common mistakes, and finish with three exercises.

Updated 29 Aug 20265 min readProgramming Languages Survey

File Handling in C++: Read, Write, Append and Seek with Examples

Learn how C++ file streams work through connected text and binary examples, from safe record parsing to appending data and updating a fixed record.

Updated 29 Aug 20266 min readC++

Constructors and Destructors in C++: Object Lifetime with Runnable Examples

Trace constructor selection, copying, scope exit, reverse destruction, and RAII through two complete C++17 programs with exact output and memory diagrams.

Updated 29 Aug 20266 min readC

StringBuilder and StringBuffer in Java: Differences, Methods and Runnable Examples

Learn how Java's mutable text classes change character sequences, where their indexes matter, and when method-level synchronisation changes the right choice.

Updated 29 Aug 20265 min readJava