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 do you find the independent variable?
What is bifunction in java?
Is heap stored in ram?
What are the new features in java 8? Explain
What is meant by event handling?
What is a modifier?
What is the use of pattern in java?
Can we create object of inner class in java?
Can you make a constructor final?
what is web.xml?and its use?
Can you pass by reference in java?
How is a variable stored in memory?