All quizzes
Free quiz · 50 questions in the bank

Java quiz

Test your Java knowledge with a free interactive quiz — 50 questions with answers and explanations. No signup needed to play.

Question 1/5Score 0

Generic types like `List<String>` allow:

Questions in this quiz
  1. Generic types like `List<String>` allow:
  2. `HashMap` vs `TreeMap` — the key difference is:
  3. A for-each loop in Java works on:
  4. Which collection is best when you need fast random access by index and rarely insert in the middle?
  5. The difference between an abstract class and an interface is:
  6. An `interface` in Java is:
  7. When comparing two String values in Java, the correct way is:
  8. A Java program's entry point has the signature:
  9. What is the difference between a checked exception and an unchecked exception?
  10. What is the difference between JDK, JRE, and JVM?
  11. In Java, what is the difference between primitive types and reference types?
  12. Java's garbage collector is responsible for:
Gaps to close?
Read the curated Java notes — core concepts, patterns, interview prep.
Java notes

More quizzes

.NET.NET MAUIAbsintheAccessibilityActixActix Web