☕ Java path
Advanced Java interview questions and study guide
10 lessons from beginner to advanced. Each lesson explains the concept, shows a worked example and lists the follow-up questions interviewers ask next.
Start with lesson 1 →Advanced 10 lessons
- Explain the Java Memory Model, happens-before and the volatile keyword.
- Compare synchronized, ReentrantLock, ReadWriteLock and StampedLock.
- How does ConcurrentHashMap work internally in Java 8+?
- How do you configure ThreadPoolExecutor correctly for production?
- How do you compose asynchronous work with CompletableFuture, including errors and timeouts?
- What are virtual threads, when should you use them and what are the pitfalls?
- Describe the JVM memory areas and the class-loading process.
- How do G1, ZGC and Parallel GC differ, and how do you tune garbage collection?
- How do you troubleshoot high CPU, a memory leak or a hung application in production?
- Explain wait/notify, BlockingQueue and the main synchronizers (CountDownLatch, CyclicBarrier, Semaphore).