What are the performance implications of interfaces over abstract classes?
Answer Posted / 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 View All Answers
What is unsigned char?
How do I write a self declaration?
What is field name?
What do you mean by stack?
Can a class have an interface?
Can we increase array size dynamically in java?
What the difference is between execute, execute Query, execute Update?
What is the difference between dom and sax parser in java?
Give me example of derived data types.
Is static a singleton?
What is meant by final class?
How many threads can I run java?
What’s a deadlock?
What is numeric function?
What does opcode mean?