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
Explain throw keyword in java?
What are singleton services?
What is the difference between the font and fontmetrics classes in java programming?
How do I convert a numeric ip address like 192.18.97.39 into a hostname like java.sun.com?
What is the maximum size of arraylist in java?
What is multithreading in java?
What are the two main uses of volatile in Java?
Are global variables initialized to zero?
Explain the use of sublass in a java program?
How do you use compareto in java?
Explain the difference between throw and throws in java?
Wha is the output from system.out.println(“hello”+null); ?
How can you add and remove nodes in jtree?
What restrictions are placed on method overloading?
define the terminology association.