What is the difference between abstract class and interface in Java?
Rate this page :
[ 0 votes]
Learn about the difference between abstract class and Interface in Java.
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.
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.