What is the difference between Abstract Class and Interface
Answer Posted / ravi
1.A programmer creates abstract class when there are some
common features shared by all the objects.
A programmer writes an interface when all the features
should be implemented differently for different objects.
2.When an abstract class is written the programmer should
provide sub classes to it.
A programmer writes an interface when he wants to leave
implemntation classes to third party vendors.
| Is This Answer Correct ? | 8 Yes | 0 No |
Post New Answer View All Answers
What's the difference between int and integer in java?
Is Java a dying language?
What are thread local variables?
What happens if we override only equals?
What does flag mean in java?
Can we write class inside a class in java?
Differentiate jar and war files?
What is a instance variable?
Is c better than java?
What is difference between string and stringbuffer?
why java uses class level type casting ?
What is string :: npos?
What is the core java?
What is pre increment and post increment in java?
Difference between a process and a program?