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 do you understand by the term singleton?
What's a method in programming?
Why main() method is public, static and void in java ?
What is %02d?
Can we override singleton class?
why are wait(), notify() and notifyall() methods defined in the object class? : Java thread
What do you mean by Function Overloading in java?
Why set is used in java?
What class of exceptions are generated by the java run-time system?
Define how does a try statement determine which catch clause should be used to handle an exception?
How listener identify that the event came from a particular object?
What is the purpose of stub and skeleton?
how are methods defined?
What is a dot notation?
explain copyonwritearraylist and when do we use copyonwritearraylist?