Java Quiz

Answer 10 questions and see how you score!

1. Which keyword is used to implement an interface?

2. Which keyword ensures atomicity for long/double?

3. Which keyword prevents inheritance?

4. Which class provides lock-free thread-safe counters?

5. Which instruction invokes instance methods?

6. Which reference type prevents GC most strongly?

7. Which method creates a new thread?

8. Which keyword allows method overriding?

9. Which class supports reactive streams?

10. Which GC phase reclaims short-lived objects?