Pergunta de entrevista da empresa Morgan Stanley

Need of Abstract Classes when there is interface available in java

Respostas da entrevista

Sigiloso

1 de jun. de 2021

Abstract classes can be partially implemented because it can provide common functionality to all implementations where as interface cannot contain implementations for any member

Sigiloso

1 de jun. de 2021

From JAVA 9 onwards, interface can have default implementations too. So this makes abstract classes practically useless.