Java
46 articles in this topic

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.

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.

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.

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.

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.

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.

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.

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.

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.

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.

Interface vs Abstract Class in Java: Differences, Default Methods and Exam Questions
Replace the old textbook rule with a current comparison, then solve the two-default-method conflict that appears in Java output and compilation questions.

Exception Handling in Java: Checked vs Unchecked, finally Traps and Output Questions
Replace guesswork with precise Java exception rules. Trace two classic finally outputs, order catches correctly, and preserve causes when wrapping failures.