Home > DeveloperSection > Interviews > What is similarities/difference between an Abstract class and Interface?

Posted on    January-19-2011 12:00 AM

 Java Java 
 1 Answer(s)
  1080  View(s)
Rate this:

Rajesh Goswami

Total Post:85

Posted on    January-19-2011 1:00 AM

Difference between an Abstract class and Interface
Interfaces provide a form of multiple inheritance. A class can extend only one other class.
  • Interfaces are limited to public methods and constants with no implementation. Abstract classes can have a partial implementation, protected parts, static methods, etc.
  • A Class may implement several interfaces. But in case of abstract class, a class may extend only one abstract class.
  • Interfaces are slow as it requires extra indirection to to find corresponding method in in the actual class. Abstract classes are fast. 


  • Neither Abstract classes or Interface can be instantiated.

Don't want to miss updates? Please click the below button!

Follow MindStick