Question: what is difference between abstract class and interface in java with example?
Answer: Main difference is methods of a Java interface are implicitly abstract and cannot have implementations. A Java abstract class can have instance methods that implements a default behavior. ... A Java class can implement multiple interfaces but it can extend only one abstract class.