Question d’entretien chez Pericent

difference between interface & abstract class in java?

Réponse à la question d'entretien

Utilisateur anonyme

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