Java Quiz

Answer 10 questions and see how you score!

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

2. Which keyword refers to current object?

3. Which feature enables runtime code generation?

4. Which memory stores local variables?

5. Which keyword is used to define a constant?

6. Which GC algorithm minimizes pause time?

7. Which method creates a new thread?

8. Which statement is used to exit method?

9. Which memory leak source is common?

10. Which lock allows multiple readers but single writer?