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 what access modifiers can be used for methods?
What are the advantages of functions?
What is the new line character?
What is static class
What are thread safe functions?
What do you understand by overloading and overriding in java?
What is callable java?
What are the differences between processes and threads?
What are functions in java?
Why strings in java are called as immutable?
What are different data structures in java?
What is the purpose of using javap?
Why vector is used in java?
What is t type java?
Give example to differentiate between call by value and call by reference.