Programming & Frameworks
Java & Spring Boot
Prepare for Java and Spring Boot interviews, covering core Java, object-oriented programming, collections, concurrency, JVM internals, Spring Framework, Spring Boot, REST APIs, Hibernate, security, and microservices.
Your learning roadmap
Explore the key concepts
Use these subtopics as a study checklist. Start with the fundamentals, then progress to practical examples and interview preparation.
Java fundamentals
Learn the core concepts of Java programming, including its syntax, program structure, object-oriented approach, platform independence, and role in enterprise application development.
Start learningJava installation and development environment
Understand how to install Java, configure environment variables, select a JDK, and set up development tools such as IntelliJ IDEA, Eclipse, or Visual Studio Code.
Start learningJVM, JRE, and JDK
Explore the differences between the Java Virtual Machine, Java Runtime Environment, and Java Development Kit, including their responsibilities in compiling and executing Java applications.
Start learningJava program execution lifecycle
Learn how Java source code is compiled into bytecode and executed by the JVM, including class loading, bytecode verification, interpretation, and JIT compilation.
Start learningPrimitive and reference data types
Understand Java's primitive types and reference types, their memory behavior, default values, and how they are used to represent data in applications.
Start learningVariables and constants
Learn how to declare, initialize, and use local variables, instance variables, static variables, and constants using the final keyword.
Start learningType casting and type conversion
Explore implicit widening and explicit narrowing conversions in Java, including numeric conversions, casting reference types, and handling potential data loss.
Start learningOperators and expressions
Understand arithmetic, relational, logical, assignment, bitwise, unary, and ternary operators, along with operator precedence and expression evaluation.
Start learningConditional statements and loops
Learn how to control program execution using if-else statements, switch expressions, for loops, while loops, do-while loops, break, and continue.
Start learningMethods and method overloading
Understand how Java methods organize reusable logic, accept parameters, return values, and support method overloading through different parameter lists.
Start learningClasses and objects
Learn how classes define properties and behaviors while objects represent individual instances, including object creation, fields, methods, and constructors.
Start learningConstructors and initialization blocks
Explore default and parameterized constructors, constructor overloading, constructor chaining, instance initialization blocks, and static initialization blocks.
Start learningObject-oriented programming principles
Understand the four core principles of object-oriented programming—encapsulation, inheritance, polymorphism, and abstraction—and how they support maintainable Java applications.
Start learningEncapsulation
Learn how encapsulation protects object state by controlling access to fields through access modifiers, constructors, getters, setters, and validation logic.
Start learningInheritance
Understand how Java classes inherit properties and behavior using extends, reuse parent-class functionality, override methods, and establish class hierarchies.
Start learningPolymorphism
Explore compile-time and runtime polymorphism in Java, including method overloading, method overriding, dynamic method dispatch, and programming to interfaces.
Start learningAbstraction
Learn how abstraction exposes essential behavior while hiding implementation details through abstract classes, interfaces, and well-defined contracts.
Start learningInterfaces and abstract classes
Compare Java interfaces and abstract classes, including method implementations, constructors, fields, multiple interface inheritance, and appropriate design use cases.
Start learningMethod overriding
Understand how subclasses provide specialized implementations of inherited methods, including overriding rules, covariant return types, and the @Override annotation.
Start learningAccess modifiers
Learn how public, protected, package-private, and private access levels control visibility and support encapsulation across classes, packages, and inheritance hierarchies.
Start learningStatic and final keywords
Explore static members shared across class instances and final variables, methods, and classes that restrict reassignment, overriding, or inheritance.
Start learningthis and super keywords
Understand how this refers to the current object and super accesses parent-class constructors and members, including constructor chaining and method resolution.
Start learningStrings and String handling
Learn Java string operations, immutability, comparison, searching, extraction, replacement, formatting, and common techniques for processing textual data.
Start learningString, StringBuilder, and StringBuffer
Compare immutable String objects with mutable StringBuilder and StringBuffer, including performance, synchronization, thread safety, and appropriate usage scenarios.
Start learningJava memory management
Understand how Java manages memory for objects, variables, class metadata, and runtime structures, including heap allocation, garbage collection, and memory monitoring.
Start learningStack and heap memory
Explore the JVM stack and heap, including method frames, local variables, object allocation, references, and how memory is used during method execution.
Start learningGarbage collection
Learn how Java garbage collection identifies unreachable objects and reclaims heap memory, including garbage collector types, generations, and performance considerations.
Start learningJava Collections Framework
Understand the Java Collections Framework, including its interfaces, implementations, algorithms, iterators, and data structures for managing groups of objects.
Start learningList, Set, and Map
Compare the List, Set, and Map interfaces, including ordering, duplicate handling, key-value storage, iteration, and common implementation choices.
Start learningArrayList and LinkedList
Explore ArrayList and LinkedList implementations, comparing internal data structures, access performance, insertion and deletion costs, and practical use cases.
Start learningHashMap and Hashtable
Understand key-value storage using HashMap and Hashtable, including hashing, collision handling, null support, synchronization, and performance differences.
Start learningHashSet and TreeSet
Compare HashSet and TreeSet for storing unique elements, including hashing, sorting, ordering guarantees, lookup performance, and comparator-based behavior.
Start learningComparable and Comparator
Learn how Comparable defines natural ordering within a class and Comparator provides external custom sorting strategies for collections and object lists.
Start learningIterator and ListIterator
Understand how Iterator and ListIterator traverse collections, remove elements safely, inspect traversal positions, and support forward and backward iteration.
Start learningGenerics
Learn how Java generics provide compile-time type safety and reusable classes, interfaces, and methods using type parameters, bounds, wildcards, and generic constraints.
Start learningWrapper classes and autoboxing
Explore wrapper classes such as Integer, Double, and Boolean, along with autoboxing, unboxing, primitive conversions, and common performance considerations.
Start learningException handling
Understand Java exception handling using try, catch, finally, throw, and throws, including exception propagation and designing reliable error-handling logic.
Start learningChecked and unchecked exceptions
Compare checked exceptions and unchecked exceptions, including compiler enforcement, RuntimeException, IOException, and decisions about handling or propagating failures.
Start learningCustom exceptions
Learn how to define application-specific exception classes by extending Exception or RuntimeException and communicate meaningful error conditions to callers.
Start learningTry-with-resources
Understand how try-with-resources automatically closes resources implementing AutoCloseable, simplifies cleanup, and handles exceptions during resource management.
Start learningJava 8 features
Explore major Java 8 enhancements, including lambda expressions, functional interfaces, streams, method references, Optional, and the modern Date and Time API.
Start learningLambda expressions
Learn how lambda expressions represent concise implementations of functional interfaces, simplify callback logic, and support functional-style programming in Java.
Start learningFunctional interfaces
Understand functional interfaces containing a single abstract method, including built-in interfaces such as Predicate, Function, Consumer, and Supplier.
Start learningMethod references
Explore method references as shorthand for lambda expressions, including static methods, instance methods, arbitrary object methods, and constructor references.
Start learningStream API
Learn how the Java Stream API processes collections through declarative pipelines, transformations, filtering, aggregation, and sequential or parallel execution.
Start learningIntermediate and terminal operations
Understand lazy intermediate stream operations such as filter, map, and sorted, along with terminal operations such as collect, reduce, count, and forEach.
Start learningOptional class
Learn how Java Optional represents potentially absent values and helps reduce null-related errors using methods such as ofNullable, map, orElse, and orElseThrow.
Start learningDate and Time API
Explore the java.time API for working with dates, times, durations, time zones, formatting, and parsing through immutable classes such as LocalDate and ZonedDateTime.
Start learningAnnotations
Understand Java annotations as metadata for source code, including built-in annotations, custom annotations, retention policies, targets, and framework integration.
Start learningReflection API
Learn how Java Reflection inspects classes, constructors, methods, fields, and annotations at runtime, including dynamic object creation and framework use cases.
Start learningJava I/O fundamentals
Understand Java input and output streams, readers, writers, buffering, byte-oriented and character-oriented processing, and resource management.
Start learningFile handling
Learn how to create, read, write, copy, move, and delete files using Java I/O and NIO APIs, including Path, Files, and directory operations.
Start learningSerialization and deserialization
Understand how Java objects are converted into byte streams and reconstructed, including Serializable, serialVersionUID, transient fields, and security considerations.
Start learningMultithreading fundamentals
Explore Java multithreading concepts, including concurrent execution, thread creation, shared resources, thread coordination, and application responsiveness.
Start learningThread lifecycle
Understand Java thread states and transitions, including NEW, RUNNABLE, BLOCKED, WAITING, TIMED_WAITING, and TERMINATED, along with lifecycle methods.
Start learningRunnable and Callable
Compare Runnable and Callable for defining asynchronous tasks, including return values, checked exceptions, and execution through executor services.
Start learningSynchronization
Learn how synchronized methods and blocks coordinate access to shared data, prevent race conditions, and provide visibility and mutual exclusion between threads.
Start learningLocks and concurrent utilities
Explore explicit locking mechanisms such as ReentrantLock and utilities from java.util.concurrent for coordinating threads and managing concurrent operations.
Start learningExecutorService and thread pools
Understand how ExecutorService manages task execution using reusable thread pools, task submission, Future results, shutdown operations, and resource control.
Start learningCompletableFuture
Learn how CompletableFuture supports asynchronous programming through task composition, chaining, exception handling, combining results, and non-blocking execution.
Start learningConcurrency and parallel programming
Explore concurrency and parallelism in Java, including task coordination, parallel streams, asynchronous execution, thread safety, and performance trade-offs.
Start learningJava Memory Model
Understand the Java Memory Model, including visibility, atomicity, ordering, happens-before relationships, volatile variables, and synchronization between threads.
Start learningDeadlocks and race conditions
Learn how deadlocks and race conditions occur in concurrent Java programs, how to identify their causes, and how to prevent them through safe synchronization and lock design.
Start learningJVM internals
Explore JVM architecture, including runtime data areas, class loading, execution engines, garbage collection, native interfaces, and memory management components.
Start learningClass loading mechanism
Understand how the JVM loads, links, and initializes classes, including bootstrap, platform, and application class loaders and parent delegation.
Start learningJIT compilation
Learn how Just-In-Time compilation converts frequently executed bytecode into native machine code and improves runtime performance through optimization techniques.
Start learningJava performance optimization
Explore Java performance optimization techniques involving memory usage, garbage collection, profiling, thread management, database access, and application bottleneck analysis.
Start learningMaven and Gradle
Compare Maven and Gradle build systems, including project configuration, dependency declarations, build lifecycle, plugins, tasks, and packaging Java applications.
Start learningDependency management
Understand how Java projects manage external libraries, transitive dependencies, dependency versions, repositories, scopes, and conflicts through Maven or Gradle.
Start learningUnit testing with JUnit
Learn how to write automated Java unit tests using JUnit, including test lifecycle methods, assertions, parameterized tests, exception testing, and test organization.
Start learningMocking with Mockito
Explore Mockito for isolating dependencies in unit tests through mock objects, stubbing, verification, argument matchers, and behavior-driven testing patterns.
Start learningSpring Framework fundamentals
Understand the Spring Framework and its core capabilities for building enterprise Java applications, including dependency injection, configuration, web development, and data access.
Start learningSpring architecture
Explore Spring's modular architecture, including Core Container, AOP, Data Access, Web MVC, Security integration, and how application components work together.
Start learningInversion of Control (IoC)
Learn how Inversion of Control transfers object creation and lifecycle management from application code to the Spring container, reducing direct dependencies.
Start learningDependency Injection (DI)
Understand constructor, setter, and field injection in Spring, including dependency resolution, bean wiring, loose coupling, and testable application design.
Start learningSpring Bean lifecycle
Explore the Spring bean lifecycle, including instantiation, dependency injection, initialization callbacks, bean post-processors, destruction callbacks, and container management.
Start learningBean scopes
Learn Spring bean scopes such as singleton, prototype, request, session, application, and websocket, including how scope affects object creation and lifecycle.
Start learningSpring configuration and annotations
Understand Spring configuration using Java-based configuration, @Configuration, @Bean, component annotations, and annotation-driven dependency management.
Start learningComponent scanning
Learn how Spring component scanning discovers annotated classes such as @Component, @Service, @Repository, and @Controller and registers them as application beans.
Start learningSpring AOP
Explore Spring Aspect-Oriented Programming for separating cross-cutting concerns such as logging, security, transactions, and auditing using aspects, advice, and pointcuts.
Start learningSpring MVC fundamentals
Understand the Spring MVC request-processing architecture, including DispatcherServlet, controllers, handler mappings, view resolution, and HTTP request handling.
Start learningSpring Boot fundamentals
Learn how Spring Boot simplifies Java application development through auto-configuration, starter dependencies, embedded servers, and production-ready features.
Start learningSpring Boot project structure
Understand the standard Spring Boot project layout, including application entry points, controllers, services, repositories, entities, configuration, resources, and tests.
Start learningSpring Boot auto-configuration
Explore how Spring Boot automatically configures application components based on classpath dependencies, existing beans, properties, and conditional configuration.
Start learningSpring Boot starters
Learn how Spring Boot starter dependencies bundle compatible libraries for common capabilities such as web development, data access, security, testing, and messaging.
Start learningSpring Boot configuration and profiles
Understand externalized configuration and Spring profiles for managing environment-specific settings, activating configurations, and separating development, testing, and production environments.
Start learningapplication.properties and application.yml
application.properties and application.yml: Learn its key concepts, practical implementation, architecture, and interview considerations.
Start learningSpring Boot REST API development
Explore how to build RESTful services with Spring Boot, including endpoint design, HTTP semantics, request validation, response formats, and layered application architecture.
Start learningControllers and REST controllers
Understand the roles of @Controller and @RestController in Spring MVC, including request handling, view rendering, JSON responses, and controller responsibilities.
Start learningRequest mapping and HTTP methods
Learn how Spring maps incoming requests using @RequestMapping, @GetMapping, @PostMapping, @PutMapping, @PatchMapping, and @DeleteMapping.
Start learningRequest parameters and path variables
Understand how to capture URL query parameters and path segments using @RequestParam and @PathVariable, including optional values, defaults, and type conversion.
Start learningRequest and response handling
Learn how Spring Boot processes HTTP request bodies, headers, status codes, response entities, content types, and JSON serialization for REST APIs.
Start learningDTOs and data transfer objects
Understand how DTOs separate API request and response structures from persistence entities, control exposed data, and support validation and application-layer boundaries.
Start learningBean validation
Learn how to validate incoming Spring Boot requests using Jakarta Bean Validation annotations, custom constraints, @Valid, @Validated, and structured validation error responses.
Start learningGlobal exception handling
Explore centralized exception handling in Spring Boot using @ControllerAdvice and @ExceptionHandler to return consistent error responses and appropriate HTTP status codes.
Start learningSpring Boot filters and interceptors
Compare servlet filters and Spring MVC interceptors, including request preprocessing, authentication checks, logging, response handling, and execution lifecycle.
Start learningSpring Data JPA
Learn how Spring Data JPA simplifies database access through repository interfaces, derived query methods, pagination, custom queries, and transaction integration.
Start learningHibernate ORM fundamentals
Understand Hibernate as an ORM framework that maps Java objects to relational database tables, manages persistence contexts, and handles SQL generation and entity state.
Start learningEntity mapping and relationships
Learn how to map Java entity classes to database tables using JPA annotations, primary keys, columns, relationship mappings, and persistence configuration.
Start learningOne-to-one, one-to-many, and many-to-many relationships
Explore JPA relationship mappings using @OneToOne, @OneToMany, and @ManyToMany, including ownership, join columns, join tables, and cascade behavior.
Start learningJPQL and native queries
Compare JPQL and native SQL queries in Spring Data JPA, including entity-oriented querying, named parameters, @Query, projections, and database-specific operations.
Start learningPagination and sorting
Learn how Spring Data JPA supports efficient pagination and sorting through Pageable, Page, Slice, Sort, and repository query methods.
Start learningTransactions with @Transactional
Understand transaction management in Spring using @Transactional, including commit and rollback behavior, propagation, isolation levels, and read-only transactions.
Start learningLazy and eager loading
Compare lazy and eager fetching strategies in Hibernate, understand when associated entities are loaded, and avoid unnecessary database queries and session-related errors.
Start learningN+1 query problem
N+1 query problem: Learn its key concepts, practical implementation, architecture, and interview considerations.
Start learningSpring Security fundamentals
Understand Spring Security architecture, including security filters, authentication providers, security contexts, request authorization, and protection of application endpoints.
Start learningAuthentication and authorization
Explore the difference between authentication and authorization and learn how Spring Security verifies identities and determines access to protected application resources.
Start learningJWT authentication
Learn how to implement JWT-based authentication in Spring Boot, including token generation, signing, validation, expiration, security filters, and stateless request processing.
Start learningOAuth 2.0 and OpenID Connect
OAuth 2.0 and OpenID Connect: Learn its key concepts, practical implementation, architecture, and interview considerations.
Start learningRole-based access control
Learn how to implement role-based access control in Spring Security using authorities, roles, request matchers, method-level security, and access-control annotations.
Start learningSpring Boot testing
Explore Spring Boot testing support, including application context tests, test slices, test configuration, dependency replacement, and integration with JUnit and Mockito.
Start learningUnit and integration testing
Understand the differences between unit and integration testing in Spring Boot, including isolated service tests, repository tests, application context loading, and database integration.
Start learningMockMvc and API testing
Learn how to test Spring MVC controllers and REST endpoints using MockMvc, including request simulation, response assertions, validation testing, and security checks.
Start learningSpring Boot Actuator
Explore Spring Boot Actuator endpoints for application health, metrics, environment information, configuration visibility, and operational monitoring.
Start learningLogging and monitoring
Learn how to configure application logging and monitor Spring Boot services using logging frameworks, structured log output, metrics, tracing, and monitoring integrations.
Start learningCaching with Spring Boot
Understand Spring's caching abstraction, including @Cacheable, @CachePut, @CacheEvict, cache providers, cache expiration, and strategies for improving application response times.
Start learningSpring Boot asynchronous processing
Learn how to execute background tasks in Spring Boot using @Async, TaskExecutor, CompletableFuture, and asynchronous method execution.
Start learningSpring Boot scheduling
Explore scheduled task execution in Spring Boot using @Scheduled, cron expressions, fixed delays, fixed rates, and configurable task scheduling.
Start learningMicroservices with Spring Boot
Understand how to build independently deployable microservices with Spring Boot, including service boundaries, REST communication, resilience, configuration, and distributed system concerns.
Start learningSpring Cloud fundamentals
Explore Spring Cloud components for distributed applications, including centralized configuration, service discovery, API gateways, load balancing, and resilience patterns.
Start learningService discovery
Learn how service discovery allows microservices to locate one another dynamically using registries, service registration, health checks, and discovery clients.
Start learningAPI Gateway
Understand the API Gateway pattern and its implementation in Spring Cloud Gateway, including routing, authentication, request filtering, rate limiting, and cross-cutting concerns.
Start learningCircuit breaker pattern
Learn how the circuit breaker pattern prevents repeated calls to failing services, including closed, open, and half-open states, fallback behavior, and Resilience4j integration.
Start learningOpenFeign
Explore OpenFeign as a declarative HTTP client for communicating between Spring Boot microservices using annotated interfaces, service discovery, and client configuration.
Start learningDistributed configuration
Understand centralized configuration management for microservices using Spring Cloud Config, configuration servers, environment-specific properties, and runtime refresh capabilities.
Start learningKafka integration with Spring Boot
Learn how to integrate Apache Kafka with Spring Boot using producers, consumers, topics, partitions, serialization, message listeners, and error-handling strategies.
Start learningDockerizing Spring Boot applications
Understand how to package Spring Boot applications into Docker images, configure containers, manage environment variables, expose ports, and run services consistently across environments.
Start learningSpring Boot deployment
Explore deployment strategies for Spring Boot applications, including executable JARs, application servers, containers, cloud platforms, environment configuration, and release practices.
Start learningProduction application monitoring
Learn how to monitor production Spring Boot applications using health checks, metrics, centralized logs, distributed tracing, alerting, and operational dashboards.
Start learningSpring Boot performance optimization
Explore techniques for improving Spring Boot performance through JVM tuning, database query optimization, connection pooling, caching, thread management, and application profiling.
Start learningPractice & revise
Interview questions
Practice interview questions with answers, key points, and practical examples.
Test your knowledge
Explore 125 questions for this topic, covering concepts, practical examples, and interview scenarios.
Keep learning step by step
Work through the concepts, practice explaining them in your own words, and use interview questions to check your understanding.
Explore another learning path