Java

24 articles in this topic

Inner Classes in Java: Types, Scope Rules and Four Runnable Examples

Learn when Java nested types need an outer object, what they can capture, and how scope resolution works through four runnable programs and one short trace.

Updated 3 Sep 20266 min readJava

JavaScript Strings Tutorial: Methods, Template Literals, and Runnable Examples

Learn strings from their delimiters and zero-based indexes through searching, cleaning, and coercion. Each example is runnable, including a complete input-to-key transformation.

Updated 2 Sep 20265 min readJava

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

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

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

Map, Set and WeakMap in JavaScript: Runnable Examples and Common Errors

Choose the right JavaScript collection by tracing a stock Map, deduplicating IDs with Set, and attaching object-owned metadata with WeakMap. Includes output traps and self-checking exercises.

Updated 26 Aug 20265 min readJava

JavaScript Tutorial: The Complete Learning Path from First Script to Real Projects

A beginner-friendly JavaScript roadmap that puts 30 topics in dependency order, then tests the sequence through one marks-report example and three checkpoints.

Updated 24 Aug 20266 min readJava

Java Tutorial: The Complete Learning Path for Self-Study

Learn Java in the right order, from your first compiled program to OOP, collections, and DSA. Each stage includes a practical target and an honest exit check.

Updated 23 Aug 20266 min readJava

JavaScript Array Methods: map, filter, reduce and the Interview Problems They Solve

Work through a filter-map-reduce chain and a frequency-table accumulator, then separate non-mutating array methods from the methods that change their input.

Updated 21 Aug 20266 min readJava

var vs let vs const in JavaScript: Scope, Hoisting and the Temporal Dead Zone

Trace block scope, early reads, loop callbacks, and const object mutation using the rules behind common JavaScript output questions.

Updated 19 Aug 20265 min readJava

this Keyword in JavaScript: call, apply, bind and Arrow Functions with Interview Traps

Determine this from the call site, compare explicit binding methods, and see why arrows behave differently in callbacks and object methods.

Updated 17 Aug 20265 min readJava

JavaScript Promises and async/await Explained: Error Handling, Execution Order, and Output Questions

Build a precise call-stack and queue model, use it to predict six output lines, and see why one missing await can move a rejection beyond try/catch.

Updated 15 Aug 20266 min readJava