Pregunta de entrevista de Pericent

difference between interface & abstract class in java?

Respuesta de la entrevista

Anónimo

16 oct 2016

interface is used to achieve 100% abstraction while abstract class is used to achieve 0 to 100% abstraction. interface can only have abstract methods while abstract class can have non-abstract methods also. variables in interface is by default final while an abstract class can also have non final variables also.

1