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 the difference between a synchronized method and a synchronized block?
Is an array a vector?
What is immutable data?
Define how objects are stored in java?
What is boolean used for?
Which command from the jdk compiles a java program?
what are the disadvantages of indexes in oracle?
What is arrays aslist in java?
Explain about join() method?
Why put method is idempotent?
explain what is transient variable in java?
What is prefix of a string?
Can sleep() method causes another thread to sleep?
What does this () mean in java?
What is difference between add() and addelement() in vector?