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 |
Is array a class in java?
Explain how can you debug the Java code?
When will we use them?
What do you know about the garbate collector?
What is a parameter in java?
How many ways can an argument be passed to a subroutine?
3 Answers Technological University of the Philippines,
Why do we use return statement?
What is linkedlist in java?
as we know a static method could access static data and static method only. then how could main method call the object of aclass which is not static and other non static data
Does anyone still use java?
What are the parameters used in Connection pooling?
If you are given the name of the function at run time how will you invoke the function?