About this question set
These ten questions come from real Java interviews at companies ranging from large banks to small startups. They cover the topics interviewers most frequently probe: the JVM internals, object equality, immutability, the abstract class versus interface distinction, the Java Memory Model, the collections hierarchy, autoboxing, functional interfaces, garbage collection, and exception handling syntax. If you can answer all ten confidently and correctly, you are likely to pass the technical screen at most companies hiring for a Java backend role.
Each answer is technically correct but concise — one paragraph per question. In a real interview you should be prepared to go deeper on any of these. An interviewer who asks “Why is String immutable?” will often follow up with “And what is the string pool?” or “What would happen if String were mutable?” Treat each answer below as the opening of a conversation, not the end of one.
For each question, we have linked the relevant tutorial where you can read a much longer treatment of the topic. Interviewers love to ask follow-up questions, and reading the tutorial deeply is the best preparation for them. If you find you cannot answer a question without looking, mark it and come back to it the next day — the second exposure is what cements the answer in memory.
Try to answer each question out loud before clicking to reveal the answer. Verbalising your answer is a skill in itself — many candidates know the material but freeze when asked to speak it.