Explain the difference between a Java interface and a Java abstract class.
Anonym
An abstract class is a generic that usually has some common methods defined that subclasses can use. However, the class itself contains one or more abstract methods that the child classes should implement. Abstract classes cannot be used directly,they must be instantiated by a subclass. Inferfacesare a template for method defition and can be adopted by any class to define a particular behavior. One key difference is that's lass can only extend one other class but it can implement many interfaces.