Domanda di colloquio di Pericent

difference between interface & abstract class in java?

Risposta di colloquio

Anonimo

16 ott 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