Pregunta de entrevista de Persistent Systems

What is the difference between Interface and Abstract Class?

Respuesta de la entrevista

Anónimo

17 sept 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.