What are the performance implications of interfaces over abstract classes?



What are the performance implications of interfaces over abstract classes?..

Answer / shakir

Interfaces are slower in performance as compared to abstract classes as extra indirections are required for interfaces. Another key factor for developers to take into consideration is that any class can extend only one abstract class while a class can implement many interfaces.
Use of interfaces also puts an extra burden on the developers as any time an interface is implemented in a class; developer is forced to implement each and every method of interface.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Core Java Interview Questions

Explain notifyall() method of object class ?

0 Answers  


What is java jit compilers?

0 Answers  


What is ternary operator in java?

0 Answers  


What is connection class in java?

0 Answers  


What does the “static” keyword mean?

0 Answers  






What is the multilevel inheritance. and also give the Example of it ?

5 Answers  


What is hypertext?

1 Answers  


What is integers and example?

0 Answers  


What is string in java? String is a data type?

0 Answers  


What is runtime polymorphism or dynamic method dispatch?

0 Answers  


Mention the default values of all the elements of an array defined as an instance variable.

0 Answers  


Which is better arraylist or vector?

0 Answers  


Categories