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 lambda expression in Java represents:
  3. What is the JVM?
  4. Which collection is best when you need fast random access by index and rarely insert in the middle?
  5. A `static` method in Java:
  6. An `interface` in Java is:
  7. A for-each loop in Java works on:
  8. A `try { ... } catch { ... } finally { ... }` block:
  9. Method overriding vs overloading — the difference is:
  10. The `final` keyword can be applied to:
  11. `Optional<T>` is used to:
  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

.NET.NET MAUIAbsintheAccessibilityActixActix Web