Sunday 27 December 2015

Disadvantage of interface in java

Interface
Interface is a mechanism to achieve fully abstraction. It's look looks like as class but not a class. It solve is with a powerful construct called interface.


It can be used to fully abstraction, generic template and multiple inheritance in java. It a blueprint of a class.


Disadvantage of interface-

  1. Interface are slower and more limited than other ones.
  2. Interface should be used multiple number of times otherwise it hardly any use of having them.

No comments:

Post a Comment