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.

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

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.

Updated 13 Aug 20267 min readJava

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.

Updated 11 Aug 20266 min readJava