← All topics
Quiz: Java Interview Questions: questions with answers
10 questions, each with the answer and a short explanation.
Take the timed quiz + get a certificate →- Q1. Can a static method be overridden?
- Q2. What does this print? (code)
- Q3. Which is used to implement the Singleton pattern?
- Q4. When does the finally block NOT run?
- Q5. flatMap is used to:
- Q6. Which of these is NOT one of the four pillars of OOP?
- Q7. What does this print? (code)
- Q8. Why must two equal objects return the same hashCode()?
- Q9. What does this print? (code)
- Q10. What is a good structure for answering a theory question in an interview?