Advantages and disadvantages of interfaces


Advantages and disadvantages of interfaces

<<Previous  Next>>

Java - Advantages and disadvantages of interfaces - June 24, 2009 at 10:00 AM by Amit Satpute

Advantages and disadvantages of interfaces.  


  • Interfaces are mainly used to provide polymorphic behavior.
  • Interfaces function to break up the complex designs and clear the dependencies between objects.


  • 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.

Also read

Interface vs. an abstract class

An abstract class may contain code in method bodies whereas code is not allowed in an interface..........

What is JNI?

Java Native Interface is a framework that allows the Java code running in the Java Virtual Machine to interact and communicate with other applications and libraries written in some other languages................

Difference between an Abstract class and Interface

An abstract class can have both abstract and concrete methods whereas an interface can have only method signatures..................

What is LinkedList class?

LinkedList class implements the List interface. In addition to the List operations, the LinkedList class supports the operations of inserting elements.................

<<Previous  Next>> 

Write your comment - Share Knowledge and Experience


Interview questions
Latest MCQs
» General awareness - Banking » ASP.NET » PL/SQL » Mechanical Engineering
» IAS Prelims GS » Java » Programming Language » Electrical Engineering
» English » C++ » Software Engineering » Electronic Engineering
» Quantitative Aptitude » Oracle » English » Finance
Home | About us | Sitemap | Contact us