What is the difference between Abstract Class and Interface
Answer Posted / e.bhavani
1) all abstract methods of the abstract class should be
implemented in its sub classes
all the (abstract) methods of the interface should be
implemted in its implementation classes
2) abstract class can contain instancevariables also
interace can not contation instance varibles. it contations
only constants.
Is This Answer Correct ? | 1 Yes | 3 No |
Post New Answer View All Answers
What are the access modifiers in java?
what do you mean by stream pipelining in java 8? Explain
What is 32 bit float?
If an object is garbage collected, can it become reachable again?
What is string manipulation?
What is an immutable class? How to create an immutable class?
List some oops concepts in java?
How do you use compareto?
do I need to use synchronized on setvalue(int)? : Java thread
Write java program to reverse string without using api?
Can inner class have constructor?
Is oracle charging for java?
Difference between object and reference?
What are data types in oop?
What is the primary benefit of encapsulation?