What is the difference between an abstract class and an interface in Java?
Abstract classes are used to provide common functionality for all subclasses, while interfaces just define a contract that classes must follow.
Thatâ€™s a good attempt, you're on the right track, but there are more specifics in terms of method definitions and inheritance in both types.
Could you clarify the role of 'default' methods in interfaces and how they affect implementation in Java?