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
How many types of string data types are there?
What is reflexive association?
What is regex java?
What is difference between static and final?
What are the high-level thread states in java programming?
Explain try and catch keywords in java?
What is difference between array and arraylist in java?
Explain constructors and types of constructors in java.
How to display names of all components in a Container?
Which browsers work with java?
Mention some interfaces implemented by linked list in java.
Does java support multiple inheritance or not?
What methods are used to get and set the text label displayed by a button object?
What is a platform?
What is meant by string is immutable?