Quick check · free · no sign-up

Senior Java Developer: 5 questions to test yourself

Pick one answer for each question, then see your score and why each answer is right. It takes about two minutes.

What does the synchronized keyword do in Java?
Why use ConcurrentHashMap instead of HashMap when several threads share a map?
Java has garbage collection. How can a memory leak still happen?
Why are Strings immutable in Java?
Which SOLID principle says classes should be open for extension but closed for modification?

Free · No sign-up · Nothing is saved · Updated 16 Nov 2026