Java
93 articles in this topic
JVM Architecture and Lifecycle MCQs: 12 Solved Java Questions with Explanations
Solve 12 published JVM questions, then use the explanations to separate bytecode, loading, execution, memory areas, reachability and runtime type checks.
Java Features and Basics MCQs: 12 Solved Questions with Explanations
Test your Java foundation with 12 solved MCQs, then trace the rules behind compilation, naming, classes, packages and two small programs.
final Keyword in Java: Constants, Inheritance Limits and Restrictions
Learn what Java's final keyword fixes in each declaration position, then trace assignment, array mutation, method inheritance, arithmetic, and compiler errors.
Reflection in Java Tutorial: Inspect Classes and Invoke Methods at Runtime
Learn Java Reflection from its Class<?> entry point to runtime construction, field access and method invocation. Trace one complete program and diagnose its common failures.
ArrayList and LinkedList in Java: Runnable Examples, Costs and Common Errors
Build a reliable mental model for Java lists, run two complete programs, compare operation costs, and avoid overload, bounds and traversal traps.
Records and Sealed Classes in Java: Runnable Examples and Rules
Learn when to use a Java record and when to seal a hierarchy. Compile two complete examples, trace their output, and fix the mistakes learners often make.
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.
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.
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.
TreeMap and SortedMap in Java: Ordering, Range Views and Worked Examples
Learn how Java's TreeMap orders keys, answers floor and ceiling queries, exposes live range views, and handles comparator collisions through worked examples.
HashSet and TreeSet in Java: Runnable Examples and Key Differences
Learn how Java sets handle duplicates, ordering, navigation and custom objects through deterministic examples you can run and modify.
Java Garbage Collection Tutorial: Reachability, Leaks and Runnable Examples
Trace three connected objects, find exactly when each becomes eligible for collection, and repair a cache that keeps byte arrays reachable.













