employer cover photo
employer logo
employer logo

Tata Consultancy Services

Part of Tata Group

Engaged Employer

Tata Consultancy Services Interview Question

What is the difference between an abstract class and an interface in Java?

Interview Answer

Anonymous

Dec 4, 2025

Abstract Class • Can have both abstract & non-abstract methods. • Can have constructors. • Supports single inheritance only. • Can have variables with any access modifier. • Interface • By default all methods are abstract (until Java 8). • No constructors. • Supports multiple inheritance. • Variables are public, static, and final by default.