Twenty advanced Java questions worth revising
Reported, not verified
These are shared by candidates, not verified by us, and not endorsed or confirmed by the companies named. Everything else on this site is checked on every build; this section is reported rather than verified, and it is kept separate for exactly that reason. Process varies by team, by interviewer and by year, so treat a list as one loop that happened, not as a syllabus you can expect to be repeated.
Source: Circulated widely on LinkedIn as a short revision list, 2026. No company or loop attached — it is somebody's view of what is worth knowing, not a record of an interview.
11 of 20 of these have a deep-dive answer on this site. The rest are not covered yet and are marked so — a gap you can see is more useful than one you cannot.
Collections and strings
3/3 answered here- 01
How does HashMap work internally in Java 8+?
- 02
What happens when two keys have the same hash code?
What is the contract between hashCode() and equals()? — 8 min
- 03
What is the difference between String, StringBuilder and StringBuffer?
What is the difference between String, StringBuilder and StringBuffer? — 9 min
Concurrency
7/11 answered here- 04
How does ConcurrentHashMap achieve thread safety?
- 05
What is the difference between volatile, synchronized and AtomicInteger?
What does volatile guarantee, and what does it not? — 12 min
- 06
How does the Java Memory Model work?
- 07
What problems can ThreadLocal cause in a thread pool?
Not covered on this site yet.
- 08
How does CompletableFuture work internally?
Not covered on this site yet.
- 09
What is ForkJoinPool and how does work-stealing work?
When is parallelStream() a mistake? — 11 min
- 10
How would you detect and troubleshoot a deadlock?
- 11
What happens when you create too many threads in a Java application?
- 12
What happens internally when a Java thread calls wait()?
- 13
How would you troubleshoot high thread contention in a Java application?
Not covered on this site yet.
- 14
What is false sharing and how can it affect performance?
Not covered on this site yet.
JVM, memory and garbage collection
1/6 answered here- 15
What happens when an object becomes eligible for garbage collection?
Not covered on this site yet.
- 16
What causes OutOfMemoryError versus StackOverflowError?
Why does my recursion throw StackOverflowError, and when should I use a loop instead? — 10 min
- 17
How does the JVM ClassLoader work?
Not covered on this site yet.
- 18
How would you identify and fix a memory leak in Java?
Not covered on this site yet.
- 19
What are Weak, Soft and Phantom references?
Not covered on this site yet.
- 20
How would you investigate high GC pauses in production?
Not covered on this site yet.
What this list is worth
Somebody’s view of what is worth revising, not a record of an interview. Useful as a checklist of topics you should be able to explain; useless as a guarantee that these are the questions you will get. For patterns across many interviews rather than a single list, the company-type breakdowns are the better guide.
Every other page on this site compiles and runs its code on each deploy and diffs the output against what the page claims. This page cannot work that way — it reports what someone else said — so it is kept in its own section and labelled on every view.