← 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?
- A.Instance fields (normal variables) and constructors
- B.Abstract methods
- C.Default methods
- 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 →