Question d’entretien chez i2c

Difference between abstract class and interface

Réponse à la question d'entretien

Utilisateur anonyme

19 mai 2019

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. Variables declared in a Java interface is by default final. An abstract class may contain non-final variables.