Answer Posted / aruna raman
Actually abstract are faster than interfaces classes.
interfaces are Slow, requires extra indirection to find the
corresponding method in the actual class. Modern JVM's are
discovering ways to reduce this speed penalty.
Abstract Class ::
- It cannot defines all the methods
- It has subclass.
- Here, Subclass is useless
- A class can be extend an abstract class
Interface ::
- It defines all the methods
- It must have implementations by other classes, But there
will be no use of that.
- Only an interface can extend another interface.
| Is This Answer Correct ? | 16 Yes | 3 No |
Post New Answer View All Answers
Which method cannot be overridden in java?
What is super keyword explain with example?
Is main is a keyword?
What is parseint?
How can we make a class singleton?
Can we store variables in local blocks?
Why does my function print none?
How to create a base64 decoder in java8?
Explain java coding standards for classes or java coding conventions for classes?
How can u increase the heap size in the memory?
How listener identify that the event came from a particular object?
Difference between Linked list and Queue?
How do you use wildcards?
What is multiple inheritance? Is it supported by java?
how to handle exceptions in ejb?