employer cover photo
employer logo
employer logo

TNG Technology Consulting

Engaged employer

TNG Technology Consulting interview question

What's the difference between abstract classes and interfaces in Java?

Interview Answer

Anonymous

29 Oct 2024

An abstract class is a common base for classes, an interface describes which methods have to be implemented. Example: Animal as abstract class which implements some common methods and Moveable as an interface with methods like move forwards, back, left, right.