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 is the difference between compare and compareto in java?
Explain java coding standards for constants?
What is the length of a string?
What is meant by flickering?
What is data member in java?
What is collection class in java? List down its methods and interfaces.
How many types of array are there?
What is the largest data type in java?
What is the use of isempty in java?
Can static methods be inherited?
What is the use of conditional statement?
Does string is thread-safe in java?
What is lazy initialization in java?
can used Protected Class outside Function.?
What are the 8 primitive data types in java?