32 Java Interview Questions

Java Interview Questions

Java backend interview questions: JVM, concurrency, Spring, JUC, and more.

Java HashMap Internal Implementation ExplainedJVM Garbage Collection Mechanisms ExplainedSpring IoC and AOP Principles ExplainedJava Multithreading and Concurrency FundamentalsWhy Is Redis So Fast Despite Being Single-Threaded?Redis Persistence: RDB vs AOF Deep DiveRedis Distributed Lock: SETNX, Redlock, and RedissonCache Penetration, Breakdown, and Avalanche: Redis Cache ProblemsCache and Database Consistency: Cache-Aside vs Write-ThroughWhy MySQL InnoDB Uses B+ Trees for IndexesMySQL Transaction Isolation Levels and MVCC ExplainedMySQL Deadlocks: How to Diagnose and PreventMySQL Master-Slave Replication: Async, Semi-Sync, and Replication LagConcurrentHashMap Internals: From Segment to CAS + synchronizedSpring Bean Lifecycle: From Instantiation to DestructionKafka Message Delivery Guarantees: At-Least-Once, At-Most-Once, Exactly-OnceThreadLocal Internals and Memory Leaks ExplainedSpring Boot Auto-Configuration: How @EnableAutoConfiguration Actually WorksSpring AOP: JDK Dynamic Proxy vs CGLIBSpring Transaction Propagation: REQUIRED, REQUIRES_NEW, and the Common PitfallsJava CAS and the ABA Problem ExplainedAQS (AbstractQueuedSynchronizer): How ReentrantLock Actually Workssynchronized Lock Upgrade: Biased, Lightweight, HeavyweightJava volatile: Visibility, Ordering, and Why It's Not AtomicJVM Memory Model: Heap, Stack, Metaspace ExplainedJava ThreadPoolExecutor: How to Tune the 7 ParametersJava Class Loading and the Parent Delegation ModelDistributed Transactions: 2PC, TCC, Saga, Outbox ComparedSnowflake ID and Distributed ID Generation StrategiesIdempotency Design: Tokens, Unique Keys, State MachinesNetty Reactor Model and NIO FundamentalsElasticsearch Inverted Index: How Full-Text Search Works

Get Real-Time Answers in Your Interview

HireMe AI listens to your interview live and delivers tailored answer suggestions in under 1s — turn these templates into real performance.

Try Free