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
Tell some latest versions in JAVA related areas?
Can java list be null?
How do you create a null object?
Is main a keyword in java?
What is the difference in between cpp and java? Can u explain in detail?
Is null a keyword in java?
Do we need to manually write Copy Constructor?
What is the use of coding?
What do you understand by access specifiers in Java?
I have multiple constructors defined in a class. Is it possible to call a constructor from another constructor’s body?
Can we force garbage collector to run ?
What is the maximum size of a string in java?
What is the difference between throw and throws keywords?
What is the purpose of assert keyword used in jdk1.4.x?
What is literal example?