What are the differences between an abstract class and an interface in Java?
- Abstract classes can have abstract and concrete methods, while interfaces can only have abstract methods.
- A class can inherit from only one abstract class, but it can implement multiple interfaces.
- Abstract classes can have constructors, interfaces cannot.
- Abstract classes can have instance variables, interfaces cannot.