Member-only story
35 Senior Java Interview Questions for 5+ Years of Experience in 2026
Senior interviews stopped asking what an API does. They ask what happens in production when it is used wrong. Thirty-five questions on the JVM, concurrency, Spring, SQL and distributed systems, with the answer that holds up and the follow-up that tests it.
“How does HashMap work?” is still asked in senior interviews. What changed is the second question. A junior answer describes buckets and equals. A senior answer gets asked: what happens when two hundred keys land in one bucket? What happens when someone mutates a key after inserting it? What does that look like at 3 a.m., in a heap dump?
That is the pattern behind every question below. The first question checks that you know the API. The follow-up checks that you have seen it fail, and know what you would look at first. I’ve written each answer to survive that follow-up: the mechanism, the default that matters, and the production consequence.
Where I have measured something myself, I quote the number and point to the article with the full experiment. A few answers I checked again on JDK 25 for this piece, and those numbers come from a 16-core laptop.
The short version:
- Seniority in these questions shows up as one habit: naming what happens when the thing goes wrong, with a…









