what are the diffrences between interface and abstract
class?
Answer Posted / cool
=>Interface :
1. All the methods in the interface are abstract.
2. We can achieve multiple inheritance through interface.
3. All the methods in the interface should be without
Access modifier. Implicitly public.
Abstract class:
1. Abstract class may contain abstract method and non-
abstract method.
2. We can achieve only single inheritance and multi-level
inheritance.
3. Abstract methods have Access modifiers.
Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
What is a double?
What is boolean example?
How is string immutable in java?
What is package private scope in java?
Is string pool garbage collected?
What are predicates in java 8?
What is the buffer limit?
What is lossy conversion in java?
What is a treeset in java?
Explain about interthread communication and how it takes place in java?
How to display arraylist values in java?
What is int lol?
What is constructor chaining and how is it achieved in java?
How do you sort objects in java?
What are voids?