Difference Between Abstract Class and Interface - Java

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

Snippet Code


  
Rate this page :
  [ 0 votes]

Learn about the difference between abstract class and Interface in Java.

Interface: 1)Interface cannot have implementations of abstract class. 2)It supports multiple inheritance. 3)The "interface" keyword is used to declare interface. 4)subclasses use implements keyword to implement interfaces. Abstract Class: 1)Abstract class can have implementations of interface. 2)It does not supports multiple inheritance. 3)The "abstract" keyword is used to declare abstract class. 4)Subclasses use extends keyword to extend an abstract class.

Tags


Ask Questions

Ask Question