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
Can a class have multiple constructors?
Mention a package that is used for linked list class in java.
What is comparator in java?
What is double checked locking in singleton?
Why is java so important?
What is difference between float and double?
What is the difference between a window and a frame in java programming?
Explain about complier design(phases)
What is the difference between == and === javascript?
how to write a server program and sending the mails to the server using smtp protocol please help me
how does the run() method in runnable work? : Java thread
What does it mean to flush a file?
Can you call one constructor from another if a class has multiple constructors?
How many bits is a boolean?
Explain purpose of sleep() method in java?