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
Difference between static binding and dynamic binding?
What data type is a string?
Can we override constructors?
Why there are some null interface in java? What does it mean?
What are the types of java languages?
Explain about the main() method in java?
placement papaers of spring computing technology
Can list be final in java?
What is the maximum length of a url?
What is singleton pattern?
Write a method that will remove given character from the string?
Can I declare class as static or private?
Can we serialize singleton class?
What is the this keyword?
How many bits are used to represent unicode, ascii, utf-16, and utf-8 characters in java programming?