Advantages and disadvantages of interfaces.Advantages :
- Interfaces are mainly used to provide polymorphic behavior. - Interfaces function to break up the complex designs and clear the dependencies between objects.
Disadvantages :
- Java interfaces are slower and more limited than other ones. - Interface should be used multiple number of times else there is hardly any use of having them.
|