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 |
What will happen if we write code like: try{}catch(exception e)catch(IOException i)
How do you use wildcards?
how session will be expired ?
what is request dispatcher and how does it work?
What is variable and constant explain with example?
Write the algorithm to check the number non-leaf nodes in a tree.
What is Remote Interface ?
when there is a need of jvm then how we can say that java is a platform independent language?
What is the similarity between dynamic binding and linking?
Are static members inherited to sub classes?
Which package is used for pattern matching with regular expressions?
What is api data?