Answer Posted / manoshp
Abstract class:- When there are common behaviors for a set of classes and that behavior do not have any existence by its own, these behaviors are defined in an abstract super class. All sub classes will inherit that common behavior by extending the super class.
Interface:- When there are multiple implementations for a set of functionalities, all these behaviors are defined in an interface as entry points without any implementation details to these behaviors. The client class can use this interface without considering the implementation details.
| Is This Answer Correct ? | 6 Yes | 1 No |
Post New Answer View All Answers
Where is stringbuffer stored?
What are heterogeneous objects?
What is the purpose of finalization in java programming?
When arithmeticexception is thrown?
What happens if an exception is not handled in a program?
What are mutable classes?
How can the checkbox class be used to create a radio button?
What is stringbuffer in java?
Difference between object and reference?
What is a generic code?
Does chrome use java?
What are the basics of core java?
Can we convert stringbuilder to string in java?
What methodology can be employed to locate substrings inside a string?
What all access modifiers are allowed for top class ?