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/12Score 0

Java code is organized into packages. The role of `package` and `import` is:

In this round
  1. Java code is organized into packages. The role of `package` and `import` is:
  2. A constructor in Java:
  3. `this` and `super` refer to:
  4. Which collection is best when you need fast random access by index and rarely insert in the middle?
  5. When comparing two String values in Java, the correct way is:
  6. Streams (`Stream<T>`, introduced in Java 8) are best described as:
  7. Generic types like `List<String>` allow:
  8. Java's garbage collector is responsible for:
  9. A `static` method in Java:
  10. A for-each loop in Java works on:
  11. Method overriding vs overloading — the difference is:
  12. What is the difference between JDK, JRE, and JVM?
Gaps to close?
Read the curated Java notes — core concepts, patterns, interview prep.
Java notes

More quizzes

AccessibilityAlgorithmsAngularApache KafkaAWSBootstrap