What is the difference between an abstract class and an interface in Java?
Abstract classes define methods and interfaces define classes. Thatâ€™s the main difference.
Hmm, that's not quite right. Interfaces define methods, not classes. Abstract classes are used for inheritance and can define both methods and fields.
Can you explain what an interface actually defines in Java?