Frage im Vorstellungsgespräch bei Pericent

difference between interface & abstract class in java?

Antwort im Vorstellungsgespräch

Anonym

16. Okt. 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