🎙 Free live masterclass · Sun, 29 Nov, 7:00 pm IST · Java Full Stack roadmap Register free →
Skills101
← Quiz: Abstract Classes and Interfaces: all 10 questions

Quiz: Abstract Classes and Interfaces · Question 9 of 10

Which can an abstract class have that an interface cannot?

Which can an abstract class have that an interface cannot?

  1. A.Instance fields (normal variables) and constructors
  2. B.Abstract methods
  3. C.Default methods
  4. D.Static methods
Answer & explanation

Correct answer: Instance fields (normal variables) and constructors

Interfaces hold only constants (public static final) and no constructors; an abstract class can keep state for its subclasses.

Can you get the rest right without peeking?

Take the timed Quiz: Abstract Classes and Interfaces quiz free. Pass it to earn XP and count towards your certificate.

Start the quiz →