🎙 Free live masterclass · Sun, 29 Nov, 7:00 pm IST · Java Full Stack roadmap Register free →
Skills101
← 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 →
  1. Q1. Can a static method be overridden?
  2. Q2. What does this print? (code)
  3. Q3. Which is used to implement the Singleton pattern?
  4. Q4. When does the finally block NOT run?
  5. Q5. flatMap is used to:
  6. Q6. Which of these is NOT one of the four pillars of OOP?
  7. Q7. What does this print? (code)
  8. Q8. Why must two equal objects return the same hashCode()?
  9. Q9. What does this print? (code)
  10. Q10. What is a good structure for answering a theory question in an interview?