Difference between Abstract classes and Interfaces

Difference between  Abstract classes and Interfaces in Java

Last updated:4/21/2015 3:47:53 AM

1 Answers

Mayank Tripathi
Mayank Tripathi

Abstract classes

1)An abstract class can have method body (non-abstract methods).
2)An abstract class can have instance variables.
3)An abstract class can have constructor.
4)An abstract class can have static methods.
5)You can extends one abstract class

Interface have only abstract methods.
An interface cannot have instance variables.
Interface cannot have constructor.
Interface cannot have static methods.
You can implement multiple interfaces.