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
What is float in java?
Is java programming easy?
What is n in java?
Why multiple inheritance is not supported by java?
How does the garbage collector works in java?
Can a private method of a superclass be declared within a subclass?
If an object is garbage collected, can it become reachable again?
What is a map? What are the implementations of map?
What are the wrapped, classes?
What are passing parameters?
What is the use of object and class classes?
Can we assign null to double in java?
What is the meaning of 3 dots in java?
What is strings in java?
How do you compare two strings lexicographically?