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 |
How to call static method?
What must a class do to implement an interface in java programming?
When a byte datatype is used?
Where are the card layouts used?
Can we serialize static variables in java?
What is a numeric literal?
How do you override a variable in java?
What is externalizable interface?
What are the advantages of autoboxing?
where exactly collections are usefull in realtime
What is public/private protected in java?
What is prime number in java?