Persistent Systems Interview Question

What is the difference between Interface and Abstract Class?

Interview Answer

Anonymous

Sep 17, 2018

Interface contains methods which are abstract implicitly. Abstract Class can contain abstract or non abstract methods. Variables are final in interface while they may or may not be in abstract class. Abstract classes cannot be instantiated. In java multiple inheritance is not possible but it can be done using Interfaces.