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 |
Explain notifyall() method of object class ?
What is java jit compilers?
What is ternary operator in java?
What is connection class in java?
What does the “static” keyword mean?
What is the multilevel inheritance. and also give the Example of it ?
What is hypertext?
What is integers and example?
What is string in java? String is a data type?
What is runtime polymorphism or dynamic method dispatch?
Mention the default values of all the elements of an array defined as an instance variable.
Which is better arraylist or vector?