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
What is output buffer?
What are streams?
What is the difference in between cpp and java? Can u explain in detail?
How to use arraylist in java netbeans?
Can a private method be declared as static?
What is flush () in java?
Is string is a class in java?
How many digits is int32?
Is java 11 paid version?
how would you implement a thread pool? : Java thread
Explain JMS in detail.
What is static and final keyword in java?
Explain when noclassdeffounderror will be raised ?
What are selection structures?
Explain jdk, jre and jvm?