Skip to main content
MockAttempt App Icon

Install MockAttempt App

Launch full-screen from your iPhone / iPad Home Screen

  1. Step 1: Tap the Safari Share icon ↑ at the bottom of your screen.
  2. Step 2: Scroll down and tap “Add to Home Screen”, then tap Add.
📝 TOPIC-WISE TIMED MCQ PRACTICE HUB Up to 2 Free Attempts / Topic / Day

Core & Advanced Java Programming (Java 21 LTS) Online Mock Test (Free 50-MCQ Topic Practice)

Select any course and syllabus topic below to launch a timed topic MCQ engineering exam (up to 2 free attempts per topic daily) with instant code-level explanations.

Daily Free Quota 2 / Topic / Day

Timed code-output & architecture MCQs with instant scorecard. Want spoken viva practice too?

Step 1 of 2 • Choose Course Track

Select Any IT Course (21 Courses • 100% Topics Covered)

Core & Advanced Java Programming (Java 21 LTS) Logo
JAVA Programming & Backend • Beginner to Advanced • 7 Weeks • Weekend Live (Sat–Sun • 2h/Day) (Weekend-Only Batch: Sat–Sun • 2 Hrs/Day (7:00 AM – 8:00 PM IST • Working Pro Trainers))

Core & Advanced Java Programming (Java 21 LTS) — Topic-Wise Mock Tests

Expand any module below to start a live timed MCQ exam across 116 Mock Test sets (max 2 free attempts per topic per day).

Step 2 of 2 • Click Any Module to Expand & Start Exam

All Modules & Topics in Core & Advanced Java Programming (Java 21 LTS)

✓ 100% Topic Coverage (116/116 Topics Active) Daily Quota Policy: Max 2 Attempts / Topic / Day
1.1 1 Set • 20m • Pass 70% 0/2 Today
Introduction to Java

History, features, platform independence, enterprise applications, and the modern Java 21 LTS ecosystem

1.2 1 Set • 20m • Pass 70% 0/2 Today
Java Architecture (JDK, JRE and JVM)

JDK, JRE, JVM components, Write Once Run Anywhere (WORA), bytecode verifier, and runtime execution flow

1.3 1 Set • 20m • Pass 70% 0/2 Today
Java Installation and Environment Setup

JDK 21 LTS installation, JAVA_HOME configuration, OS PATH setup, IntelliJ IDEA & Maven workspace verification

1.4 1 Set • 20m • Pass 70% 0/2 Today
First Java Program

Class declaration, public static void main(String[] args) signature, System.out printing, CLI arguments, compi...

1.5 1 Set • 20m • Pass 70% 0/2 Today
Java Compilation and Bytecode Execution

Source code (.java), javac compiler checks, bytecode (.class), class loader verification, interpreter and JIT...

1.6 1 Set • 20m • Pass 70% 0/2 Today
Variables in Java

Local variables, instance fields, static class variables, variable scope, lifetime, and definite assignment ru...

1.7 1 Set • 20m • Pass 70% 0/2 Today
Data Types in Java

8 primitive types (byte, short, int, long, float, double, char, boolean), memory sizes, ranges, literals, and...

1.8 1 Set • 20m • Pass 70% 0/2 Today
Type Conversion and Casting

Implicit widening conversion, explicit narrowing cast, numeric promotion in expressions, truncation, and overf...

1.9 1 Set • 20m • Pass 70% 0/2 Today
Operators in Java

Arithmetic, relational, short-circuit logical, assignment, unary increment/decrement, bitwise, shift, and tern...

1.10 1 Set • 20m • Pass 70% 0/2 Today
User Input (Scanner and BufferedReader)

java.util.Scanner token parsing, newline buffer pitfalls, InputStreamReader + BufferedReader fast line reading...

1.11 1 Set • 20m • Pass 70% 0/2 Today
Comments and Javadoc Documentation

Single-line (//), multi-line (/* */), Javadoc (/** */) tags (@param, @return, @throws), and avoiding noisy red...

1.12 1 Set • 20m • Pass 70% 0/2 Today
Java Coding Conventions and Clean Code Basics

PascalCase classes, camelCase methods/variables, UPPER_SNAKE_CASE constants, package naming, indentation, and...

1.13 1 Set • 20m • Pass 70% 0/2 Today
Week 1 Git Setup and Daily Commit Discipline

Initializing local Git repo, configuring user.name/user.email, .gitignore for Java/Maven/IntelliJ, staging, co...

2.1 1 Set • 20m • Pass 70% 0/2 Today
Conditional Statements

if, if-else, nested if, else-if ladder, guard clauses, and boolean expression simplification

2.2 1 Set • 20m • Pass 70% 0/2 Today
Switch Statements and Switch Expressions

Traditional switch-case fallthrough vs modern Java 14–21 arrow switch expressions (`->`), `yield`, and exhaust...

2.3 1 Set • 20m • Pass 70% 0/2 Today
Loops (for, while, do-while)

Deterministic `for` loops, condition-driven `while` loops, menu-driven `do-while` loops, and infinite-loop pre...

2.4 1 Set • 20m • Pass 70% 0/2 Today
Loop Control (break, continue and Nested Loops)

Early exit with `break`, skipping iterations with `continue`, labeled breaks, and nested loop complexity aware...

2.5 1 Set • 20m • Pass 70% 0/2 Today
Patterns (Star, Number and Character Patterns)

Row-column coordinate mapping, pyramid/diamond star patterns, Floyd’s number triangle, and character matrices

2.6 1 Set • 20m • Pass 70% 0/2 Today
Arrays Introduction, Declaration and Initialization

Contiguous heap allocation, zero/default initialization, `.length` property, static vs dynamic array literals,...

2.7 1 Set • 20m • Pass 70% 0/2 Today
Array Operations (Traversal, Insertion, Deletion and Searching)

Forward/backward traversal, shifting elements for insertion and deletion, linear search, and in-place reversal

2.8 1 Set • 20m • Pass 70% 0/2 Today
One-Dimensional Arrays Manipulation

Finding second-largest element, counting frequencies, finding duplicates, removing duplicates from sorted arra...

2.9 1 Set • 20m • Pass 70% 0/2 Today
Multidimensional Arrays

2D rectangular arrays, jagged arrays (arrays of arrays), row-major memory layout, and nested traversal

2.10 1 Set • 20m • Pass 70% 0/2 Today
Matrix Operations (Addition, Subtraction, Transpose and Multiplication)

Dimension compatibility validation, matrix addition/subtraction, in-place/out-of-place transpose, and `O(m*n*p...

2.11 1 Set • 20m • Pass 70% 0/2 Today
Enhanced For Loop (For-Each)

Read-only iteration syntax, readability advantages, when index-based `for` is required instead, and nested for...

2.12 1 Set • 20m • Pass 70% 0/2 Today
Array Utilities (java.util.Arrays)

Arrays.sort, Arrays.binarySearch, Arrays.copyOf, Arrays.copyOfRange, Arrays.fill, Arrays.equals, Arrays.deepTo...

3.1 1 Set • 20m • Pass 70% 0/2 Today
Class and Object

Class blueprint definition, heap object instantiation with `new`, stack object references, null references, an...

3.2 1 Set • 20m • Pass 70% 0/2 Today
Methods in Java

Method signatures, parameter passing (pass-by-value of primitives and object references), return types, vararg...

3.3 1 Set • 20m • Pass 70% 0/2 Today
Constructors and Constructor Overloading

Default compiler constructor, parameterized constructors, constructor overloading, and invariant validation du...

3.4 1 Set • 20m • Pass 70% 0/2 Today
this Keyword

Disambiguating shadowed fields, constructor chaining via `this(...)`, and passing/returning current instance i...

3.5 1 Set • 20m • Pass 70% 0/2 Today
static Keyword

Static fields, static utility methods, static initialization blocks, class-level memory in Metaspace/Heap, and...

3.6 1 Set • 20m • Pass 70% 0/2 Today
Encapsulation

Private state, controlled getters/setters, invariant enforcement, defensive copying, and telling objects what...

3.7 1 Set • 20m • Pass 70% 0/2 Today
Inheritance

IS-A relationship, `extends`, single, multilevel, and hierarchical inheritance, protected visibility, and why...

3.8 1 Set • 20m • Pass 70% 0/2 Today
super Keyword

Invoking parent constructors via `super(...)`, calling overridden parent methods via `super.method()`, and con...

3.9 1 Set • 20m • Pass 70% 0/2 Today
Method Overloading (Compile-Time Polymorphism)

Same method name with distinct parameter lists (arity, types, order), type promotion rules, and ambiguity erro...

3.10 1 Set • 20m • Pass 70% 0/2 Today
Method Overriding (Runtime Polymorphism)

@Override annotation, covariant return types, access-level & checked-exception rules, and dynamic dispatch on...

3.11 1 Set • 20m • Pass 70% 0/2 Today
Polymorphism (Static vs Dynamic Binding)

Early binding (private, static, final methods and fields) vs late virtual method invocation, upcasting, and sa...

3.12 1 Set • 20m • Pass 70% 0/2 Today
Abstraction and Abstract Classes

Abstract classes, abstract vs concrete template methods, protected constructors, and partial implementation sh...

3.13 1 Set • 20m • Pass 70% 0/2 Today
Interfaces and Multiple Interface Implementation

Pure capability contracts, `implements`, multiple interface inheritance, loose coupling, and programming to in...

3.14 1 Set • 20m • Pass 70% 0/2 Today
Modern Interface Features (Default, Static and Private Methods)

Java 8+ `default` methods for backward-compatible evolution, `static` factory methods on interfaces, `private`...

3.15 1 Set • 20m • Pass 70% 0/2 Today
final Keyword (Variables, Methods and Classes)

Blank final fields, immutable value objects, preventing method overriding (`final` methods), and non-extensibl...

3.16 1 Set • 20m • Pass 70% 0/2 Today
Object Class (toString, equals, hashCode and getClass)

java.lang.Object root methods, readable `toString()`, reflexive/symmetric/transitive `equals()`, `Objects.hash...

4.1 1 Set • 20m • Pass 70% 0/2 Today
String Immutability and String Pool

String literal interning in Heap String Pool vs `new String()`, immutability benefits (security, caching, thre...

4.2 1 Set • 20m • Pass 70% 0/2 Today
String Comparison (==, equals, equalsIgnoreCase, compareTo)

Reference identity (`==`) vs content equality (`equals`), null-safe constant-first comparisons, `equalsIgnoreC...

4.3 1 Set • 20m • Pass 70% 0/2 Today
String Methods

length, isBlank, strip, charAt, substring, indexOf, contains, replace, split, String.join, formatted

4.4 1 Set • 20m • Pass 70% 0/2 Today
StringBuilder

Mutable character buffer, capacity growth (`old * 2 + 2`), append, insert, delete, reverse, and single-threade...

4.5 1 Set • 20m • Pass 70% 0/2 Today
StringBuffer

Synchronized thread-safe mutable strings, comparison with StringBuilder and String, and legacy API interoperab...

4.6 1 Set • 20m • Pass 70% 0/2 Today
Wrapper Classes

Byte, Short, Integer, Long, Float, Double, Character, Boolean, parsing methods (`parseInt`, `valueOf`), and In...

4.7 1 Set • 20m • Pass 70% 0/2 Today
Autoboxing and Unboxing

Automatic compiler conversion between primitives and wrappers, hidden `NullPointerException` on unboxing, and...

4.8 1 Set • 20m • Pass 70% 0/2 Today
Exception Handling Hierarchy

Throwable -> Error (OutOfMemoryError, StackOverflowError) vs Exception (Checked vs RuntimeException), call-sta...

4.9 1 Set • 20m • Pass 70% 0/2 Today
try-catch Blocks

Specific-to-general catch ordering, multi-catch (`catch (IOException | NumberFormatException e)`), preserving...

4.10 1 Set • 20m • Pass 70% 0/2 Today
finally Block and Resource Cleanup

Guaranteed execution of `finally`, `try-with-resources` (`AutoCloseable`), suppressed exceptions, and why `ret...

4.11 1 Set • 20m • Pass 70% 0/2 Today
throw and throws

Explicitly throwing exceptions with `throw`, declaring checked propagation via `throws`, and exception chainin...

4.12 1 Set • 20m • Pass 70% 0/2 Today
Custom Exceptions

Designing domain-specific exceptions (`StudentNotFoundException`, `DuplicateRollNumberException`), error codes...

4.13 1 Set • 20m • Pass 70% 0/2 Today
Checked Exceptions

Compile-time enforced recovery (`IOException`, `SQLException`, `ParseException`), handle-or-declare rule, and...

4.14 1 Set • 20m • Pass 70% 0/2 Today
Unchecked Exceptions

RuntimeException subclasses (`NullPointerException`, `IllegalArgumentException`, `IllegalStateException`, `Ind...

4.15 1 Set • 20m • Pass 70% 0/2 Today
Java Assertions

`assert condition : message;` syntax, enabling assertions via `-ea` JVM flag, and why assertions never replace...

4.16 1 Set • 20m • Pass 70% 0/2 Today
Packages in Java

Reverse-domain naming (`com.mockattempt.student.*`), directory mapping, `import` vs wildcard imports, and laye...

4.17 1 Set • 20m • Pass 70% 0/2 Today
Access Modifiers (public, protected, default, private)

Class-level vs member-level visibility matrix across same class, same package, subclass in another package, an...

4.18 1 Set • 20m • Pass 70% 0/2 Today
Enums in Java

Type-safe constants, enum constructors, fields, methods, `values()`, `valueOf()`, and exhaustive switch expres...

5.1 1 Set • 20m • Pass 70% 0/2 Today
Collections Introduction and Architecture

Iterable -> Collection hierarchy (List, Set, Queue/Deque) and separate Map hierarchy, utility methods in java....

5.2 1 Set • 20m • Pass 70% 0/2 Today
List Interface

Ordered indexed sequence contract, positional access, duplicate allowance, `List.of`, `subList` view semantics

5.3 1 Set • 20m • Pass 70% 0/2 Today
ArrayList

Dynamic `Object[]` backing array, default capacity (10), 1.5x growth resizing, `O(1)` random access, `O(n)` mi...

5.4 1 Set • 20m • Pass 70% 0/2 Today
LinkedList

Doubly-linked `Node<E>` (`prev`, `item`, `next`) structure, `O(1)` head/tail operations, `O(n)` indexed traver...

5.5 1 Set • 20m • Pass 70% 0/2 Today
Vector

Legacy synchronized dynamic array, 2x capacity growth, method-level lock overhead, and modern alternatives (`A...

5.6 1 Set • 20m • Pass 70% 0/2 Today
Stack

LIFO (Last-In-First-Out) push, pop, peek operations, why `java.util.Stack` extends `Vector`, and why `Deque`/`...

5.7 1 Set • 20m • Pass 70% 0/2 Today
Queue Interface

FIFO (First-In-First-Out) processing contract: `offer` vs `add`, `poll` vs `remove`, `peek` vs `element`

5.8 1 Set • 20m • Pass 70% 0/2 Today
PriorityQueue

Binary heap internal array, natural min-heap ordering vs custom `Comparator` max-heap, `O(log n)` offer/poll,...

5.9 1 Set • 20m • Pass 70% 0/2 Today
Deque and ArrayDeque

Double-ended queue (`offerFirst`, `offerLast`, `pollFirst`, `pollLast`), circular resizable array internals, n...

5.10 1 Set • 20m • Pass 70% 0/2 Today
Set Interface

Mathematical uniqueness contract, `Set.of` immutable sets, set union (`addAll`), intersection (`retainAll`), a...

5.11 1 Set • 20m • Pass 70% 0/2 Today
HashSet

Backed internally by `HashMap<E, Object>` (`PRESENT` dummy value), `O(1)` average add/contains/remove, unorder...

5.12 1 Set • 20m • Pass 70% 0/2 Today
LinkedHashSet

Hash table + doubly-linked list across entries, preserving predictable insertion order with `O(1)` lookup perf...

5.13 1 Set • 20m • Pass 70% 0/2 Today
TreeSet

Backed by `TreeMap` (Red-Black self-balancing BST), `O(log n)` operations, `NavigableSet` range queries (`head...

5.14 1 Set • 20m • Pass 70% 0/2 Today
Map Interface

Key-value associations, `put`, `getOrDefault`, `putIfAbsent`, `computeIfAbsent`, `merge`, `keySet`, `values`,...

5.15 1 Set • 20m • Pass 70% 0/2 Today
HashMap Internals

Node<K,V>[] table, hash spreading `(h = key.hashCode()) ^ (h >>> 16)`, index `(n - 1) & hash`, collisions, tre...

5.16 1 Set • 20m • Pass 70% 0/2 Today
LinkedHashMap

Insertion-order vs access-order (`accessOrder = true`) doubly-linked entries and overriding `removeEldestEntry...

5.17 1 Set • 20m • Pass 70% 0/2 Today
TreeMap

Red-Black tree sorted keys, `O(log n)` get/put, `NavigableMap` (`firstEntry`, `lastEntry`, `floorEntry`, `subM...

5.18 1 Set • 20m • Pass 70% 0/2 Today
Hashtable

Legacy synchronized dictionary, no null keys or null values, coarse object-wide locking vs `ConcurrentHashMap`

5.19 1 Set • 20m • Pass 70% 0/2 Today
Iterator and Fail-Fast Behaviour

`hasNext()`, `next()`, safe `iterator.remove()`, `modCount` tracking, and avoiding `ConcurrentModificationExce...

5.20 1 Set • 20m • Pass 70% 0/2 Today
ListIterator

Bidirectional traversal (`hasPrevious`, `previous`), index inspection (`nextIndex`), in-place `set(e)` replace...

5.21 1 Set • 20m • Pass 70% 0/2 Today
Comparable (Natural Ordering)

`Comparable<T>` interface, `compareTo(T other)` contract (sign symmetry, transitivity), and `Integer.compare`...

5.22 1 Set • 20m • Pass 70% 0/2 Today
Comparator (Custom Multi-Field Sorting)

`Comparator.comparing`, `comparingDouble`, `reversed()`, `thenComparing`, `nullsLast`, and decoupling sort pol...

5.23 1 Set • 20m • Pass 70% 0/2 Today
equals and hashCode Contract in Collections

Why equal objects MUST produce identical hash codes, hash collision handling via `equals`, immutable key field...

6.1 1 Set • 20m • Pass 70% 0/2 Today
Generics (Classes, Interfaces and Methods)

Compile-time type safety, type parameters (`<T, R>`), generic `ApiResponse<T>` wrappers, type erasure at runti...

6.2 1 Set • 20m • Pass 70% 0/2 Today
Bounded Generics

Upper bounds (`<T extends Number & Comparable<T>>`), restricting type parameters to domain capabilities

6.3 1 Set • 20m • Pass 70% 0/2 Today
Wildcards (?, extends and super — PECS)

Unbounded `?`, covariance `? extends T` (Producer Extends), contravariance `? super T` (Consumer Super), and i...

6.4 1 Set • 20m • Pass 70% 0/2 Today
Lambda Expressions

`@FunctionalInterface`, concise `(params) -> expression` syntax, target typing, and effectively final variable...

6.5 1 Set • 20m • Pass 70% 0/2 Today
Core Functional Interfaces (Predicate, Function, Consumer, Supplier)

`java.util.function` contracts: `test(T)`, `apply(T)`, `accept(T)`, `get()`, and composition (`and`, `or`, `ne...

6.6 1 Set • 20m • Pass 70% 0/2 Today
Bi-Arity Functional Interfaces (BiPredicate, BiFunction, BiConsumer)

Two-argument functional contracts (`BiPredicate`, `BiFunction`, `BiConsumer`, `BinaryOperator`) and `Map.forEa...

6.7 1 Set • 20m • Pass 70% 0/2 Today
Method References

Static (`Integer::parseInt`), bound instance (`logger::info`), unbound instance (`String::toLowerCase`), and c...

6.8 1 Set • 20m • Pass 70% 0/2 Today
Stream API Architecture and Creation

`collection.stream()`, `Stream.of`, `Arrays.stream`, `IntStream.rangeClosed`, lazy evaluation, non-mutating so...

6.9 1 Set • 20m • Pass 70% 0/2 Today
Stream Intermediate Operations

`filter`, `map`, `mapToDouble`, `flatMap`, `sorted`, `distinct`, `limit`, `skip`, and `peek`

6.10 1 Set • 20m • Pass 70% 0/2 Today
Stream Terminal Operations

`toList()`, `collect`, `reduce`, `count`, `min`, `max`, `findFirst`, `anyMatch`, `allMatch`, `noneMatch`, `for...

6.11 1 Set • 20m • Pass 70% 0/2 Today
Collectors (groupingBy, partitioningBy, joining, mapping)

`Collectors.toMap` (with merge function!), `groupingBy` + downstream `counting`/`averagingDouble`/`mapping`, `...

6.12 1 Set • 20m • Pass 70% 0/2 Today
Optional for Null-Safe Return Contracts

`Optional.of`, `Optional.ofNullable`, `Optional.empty`, `map`, `flatMap`, `filter`, `orElse`, `orElseGet`, `or...

6.13 1 Set • 20m • Pass 70% 0/2 Today
Date and Time API (java.time)

Immutable `LocalDate`, `LocalTime`, `LocalDateTime`, `Instant`, `ZonedDateTime`, `Duration`, `Period`, and `Da...

6.14 1 Set • 20m • Pass 70% 0/2 Today
Interface Default and Static Enhancements

Evolving functional and domain interfaces with `default` combinators and `static` factories without breaking l...

6.15 1 Set • 20m • Pass 70% 0/2 Today
Modern Java 17/21 Features (Records, Sealed Classes, Text Blocks, Pattern Matching)

Immutable `record` DTOs & compact constructors, `sealed` class hierarchies (`permits`), multi-line SQL/JSON te...

6.16 1 Set • 20m • Pass 70% 0/2 Today
File I/O and NIO.2 (Path, Files and Streams)

`java.nio.file.Path`, `Files.readString`, `Files.writeString`, `Files.lines` (try-with-resources!), buffered r...

7.1 1 Set • 20m • Pass 70% 0/2 Today
JVM Architecture Overview

ClassLoader subsystem, Runtime Data Areas, Execution Engine (Interpreter + JIT + GC), Native Method Interface...

7.2 1 Set • 20m • Pass 70% 0/2 Today
Class Loading Subsystem

Bootstrap, Platform, and Application ClassLoaders, Parents-Delegation model, Loading -> Linking (Verify, Prepa...

7.3 1 Set • 20m • Pass 70% 0/2 Today
JVM Memory Management (Heap, Stack and Metaspace)

Young Gen (Eden, Survivor S0/S1), Old Gen, per-thread JVM Stacks & frames, Native Metaspace, StackOverflowErro...

7.4 1 Set • 20m • Pass 70% 0/2 Today
Garbage Collection Fundamentals

Reachability analysis from GC Roots, Mark-Sweep-Compact, Minor vs Major/Mixed GC, Stop-The-World pauses, G1GC...

7.5 1 Set • 20m • Pass 70% 0/2 Today
JIT Compiler (Just-In-Time Compilation)

HotSpot profiling, C1 (client/fast compile) & C2 (tiered server optimization), method inlining, escape analysi...

7.6 1 Set • 20m • Pass 70% 0/2 Today
Thread Fundamentals (Process vs Thread)

OS Process isolation vs lightweight shared-heap threads, context switching, concurrency vs parallelism, Java 2...

7.7 1 Set • 20m • Pass 70% 0/2 Today
Thread Creation (Thread Class and Runnable Interface)

Implementing `Runnable` (preferred composition) vs extending `Thread`, passing lambdas to `new Thread(...)`, a...

7.8 1 Set • 20m • Pass 70% 0/2 Today
Thread Lifecycle States

`Thread.State` enum: `NEW`, `RUNNABLE`, `BLOCKED`, `WAITING`, `TIMED_WAITING`, and `TERMINATED` state transiti...

7.9 1 Set • 20m • Pass 70% 0/2 Today
Thread Methods (start, run, sleep, join, interrupt)

Coordinating completion with `join()`, cooperative cancellation via `interrupt()` & `isInterrupted()`, and res...

7.10 1 Set • 20m • Pass 70% 0/2 Today
Synchronization (synchronized Methods and Blocks)

Intrinsic monitor locks, mutual exclusion + happens-before memory visibility, narrow `synchronized (lock)` blo...

7.11 1 Set • 20m • Pass 70% 0/2 Today
Race Conditions and Shared Mutable State

Check-then-act (`if (!contains) put`) and read-modify-write (`count++`) hazards, stateless service design in S...

7.12 1 Set • 20m • Pass 70% 0/2 Today
Deadlocks (Causes and Prevention)

Coffman conditions, circular lock acquisition (`Thread 1: A->B` vs `Thread 2: B->A`), consistent global lock o...

7.13 1 Set • 20m • Pass 70% 0/2 Today
volatile Keyword and Memory Visibility

CPU cache coherence, Java Memory Model happens-before guarantee, when `volatile` suffices (single-writer boole...

7.14 1 Set • 20m • Pass 70% 0/2 Today
Atomic Classes (AtomicInteger, AtomicLong, LongAdder)

Lock-free Compare-And-Swap (CAS) hardware instructions, `incrementAndGet`, `compareAndSet`, `AtomicReference`,...

7.15 1 Set • 20m • Pass 70% 0/2 Today
ExecutorService and Thread Pools

Fixed, cached, scheduled, and custom `ThreadPoolExecutor` (corePoolSize, maxPoolSize, bounded workQueue, rejec...

7.16 1 Set • 20m • Pass 70% 0/2 Today
Callable and Future

`Callable<V>` returning typed results & throwing checked exceptions, `Future.get(timeout, unit)`, `invokeAll`,...

7.17 1 Set • 20m • Pass 70% 0/2 Today
CompletableFuture (Asynchronous Programming)

`supplyAsync`, `thenApply`, `thenCompose`, `thenCombine`, `allOf`, `orTimeout`, and `exceptionally` non-blocki...

7.18 1 Set • 20m • Pass 70% 0/2 Today
Concurrent Collections (ConcurrentHashMap and BlockingQueue)

Fine-grained bucket/CAS concurrency in `ConcurrentHashMap`, atomic `computeIfAbsent`, and bounded `ArrayBlocki...

🎓 Free 1st Live Demo + Study & Interview Pack • Instant Email OTP Access

Want Unlimited JAVA Mock Exams + Weekend Live Mentorship With Working IT Pros?

Train live on weekends with active Working IT Professionals • All-Inclusive Fee: $21 USD All-Incl. (Includes 30-Day 100% Upgrade Credit)

Assessment Guide

Frequently Asked Questions — Topic-Wise Mock Tests

Explore Live Cohorts →

Are Core & Advanced Java Topic Mock Tests free on MockAttempt Tech Academy?

Yes! Visitors can attempt up to 2 free timed 50-MCQ Core & Advanced Java Programming (Java 21 LTS) Mock Tests per topic daily across 116 topics with instant answers. Enrolled live-batch students (₹1,999 All-Inclusive) unlock unlimited daily attempts.

Can I also practice Spoken AI Interviews for Core & Advanced Java?

Yes — every Core & Advanced Java Programming (Java 21 LTS) topic also includes up to 2 free daily Spoken MockAttempt AI Technical Interviews (https://mockattempt.com/ai-interviews/course/core-java-training) with 4-axis voice evaluation.

⚡ Free 1st Live Demo • All-Inclusive Fees (Incl. 18% GST)

Book Free Live Demo or Reserve Batch Seat

+ Add Background, Location or Questions (Optional)