🎙 Free live masterclass · Sun, 29 Nov, 7:00 pm IST · Java Full Stack roadmap Register free →
Skills101
← All topics

Quiz: Abstract Classes and Interfaces: questions with answers

10 questions, each with the answer and a short explanation.

Take the timed quiz + get a certificate →
  1. Q1. Can you create an object of an abstract class with new?
  2. Q2. How many interfaces can a class implement?
  3. Q3. Fields declared in an interface are automatically:
  4. Q4. What does this print? (code)
  5. Q5. Which is a functional interface?
  6. Q6. What does this print? (code)
  7. Q7. A class implements an interface but does not implement one of its abstract methods. What happens?
  8. Q8. What does this print? (code)
  9. Q9. Which can an abstract class have that an interface cannot?
  10. Q10. What does this print? (code)