Java Quiz
Test your Java knowledge: 10 questions covering syntax, OOP, collections, concurrency, Spring & security with instant feedback.
Quiz: Test Your Java
Ten quick questions across the whole Java track — multiple-choice + a few short practical prompts. Answer each one and you'll see instant feedback with the explanation. Hit Finish quiz at the end for your score.
Java fundamentals — 10 questions
10 questions · answer each one and get instant feedback.
1Which JDK component is required to compile Java code?
2What's the correct way to compare two String values for equality?
3Which collection guarantees O(1) average lookup?
4Which keyword makes a field immutable after assignment?
5What does try-with-resources do?
6Which is the modern, recommended way to run async work?
7Which Spring annotation marks a class as a REST controller?
8What's the safest password storage approach in 2026?
9Write a single line that creates a mutable List<String> with the values 'a' and 'b'.
Hint: we look for key terms in your answer.
10Use Streams to count how many strings in `names` start with 'A'. Show the expression.
Hint: we look for key terms in your answer.
Score & Feedback
Aim for 8 / 10 or higher before moving into the Interview Preparation track. Re-read any lesson referenced in an explanation, then retry the quiz.