Skip to main content
1:1 mock interviews with Sumit, scored on a real hiring rubric.Book a slot →

Java backend interview resource · Spring Boot

Java backend interviews, topic by topic. Core Java to Spring Boot microservices.

Java backend interview topics in reading order: core Java and OOP, collections, Java 8+ and modern Java, multithreading, the JVM, Spring Boot, JPA and Hibernate, Spring Security and microservices. Every topic has key terms, a step-by-step explanation, code, practice and the interview questions that follow.

8 parts44 topics0 read by youFree · progress saved in this browser

Core Java & JVM

  • 6 topicsNot started

    Core Java & OOP

    JDK, JRE and JVM, the four OOP pillars, String immutability and the string pool, equals and hashCode, exceptions, and static, final, abstract classes and interfaces.

    1. 01JDK vs JRE vs JVM and How Java Runs
    2. 02OOP in Java: Encapsulation, Inheritance, Polymorphism, Abstraction
    3. 03String Immutability, the String Pool and StringBuilder
    4. 04The equals and hashCode Contract
    5. …2 more
  • 6 topicsNot started

    Java Collections Framework

    The collections hierarchy, how HashMap works inside, ArrayList vs LinkedList, ConcurrentHashMap, Comparable vs Comparator, and fail-fast vs fail-safe iterators.

    1. 01Collections Hierarchy: List, Set, Queue and Map
    2. 02How HashMap Works Internally
    3. 03ArrayList vs LinkedList
    4. 04ConcurrentHashMap and Thread-Safe Collections
    5. …2 more
  • 5 topicsNot started

    Java 8 to Java 25 Features

    Lambdas and functional interfaces, the Streams API, Optional, records, sealed classes and pattern matching, and virtual threads.

    1. 01Lambdas, Functional Interfaces and Method References
    2. 02The Streams API
    3. 03Optional: Avoiding NullPointerException
    4. 04Records, Sealed Classes and Pattern Matching
    5. …1 more
  • 5 topicsNot started

    Multithreading & Concurrency

    Threads and their lifecycle, synchronized, volatile and the Java Memory Model, ExecutorService and thread pools, CompletableFuture, locks, atomics and deadlocks.

    1. 01Threads, Runnable vs Callable and the Thread Lifecycle
    2. 02synchronized, volatile and the Java Memory Model
    3. 03ExecutorService and Thread Pools
    4. 04CompletableFuture and Async Programming
    5. …1 more
  • 4 topicsNot started

    JVM Internals & Performance

    JVM memory areas (heap, stack, metaspace), garbage collection and collectors like G1 and ZGC, class loaders, memory leaks and diagnosing production problems.

    1. 01JVM Memory: Heap, Stack and Metaspace
    2. 02Garbage Collection and Collectors (G1, ZGC)
    3. 03Class Loaders and Class Loading
    4. 04Diagnosing High CPU, Memory Leaks and Slow Java Services

Spring Boot & microservices

  • 7 topicsNot started

    Spring Core & Spring Boot

    IoC and dependency injection, bean scopes and lifecycle, auto-configuration, REST controllers with validation, global exception handling, configuration and profiles, and AOP.

    1. 01IoC and Dependency Injection in Spring
    2. 02Bean Scopes and the Bean Lifecycle
    3. 03How Spring Boot Auto-Configuration Works
    4. 04REST Controllers, Validation and DTOs
    5. …3 more
  • 5 topicsNot started

    JPA, Hibernate & Spring Data

    The entity lifecycle and persistence context, relationships with lazy and eager loading, the N+1 problem, @Transactional propagation and isolation, and Spring Data repositories.

    1. 01JPA and Hibernate: Entities and the Persistence Context
    2. 02Relationships, Lazy vs Eager Loading and LazyInitializationException
    3. 03The N+1 Query Problem in JPA and How to Fix It
    4. 04@Transactional: Propagation, Isolation and Rollback Rules
    5. …1 more
  • 6 topicsNot started

    Spring Security, Microservices & Testing

    The Spring Security filter chain, JWT resource servers, microservice patterns with Spring Cloud, resilience with circuit breakers, Kafka with Spring, and testing Spring Boot apps.

    1. 01How Spring Security Works: The Filter Chain
    2. 02JWT Authentication in Spring Boot
    3. 03Microservices Patterns with Spring Boot and Spring Cloud
    4. 04Resilience: Timeouts, Retries and Circuit Breakers
    5. …2 more

After reading, practise

A topic not clicking, or need a mock round? Talk to Sumit.