what is the difference between abstract class and
Interface?where we can use it in realtime projects?
Answer Posted / rashmi kalra
1. Abstract classes may have concrete methods while
interfaces have no methods implemented.
2. Interfaces do not come in inheriting chain while
abstract class come in inheritance.
| Is This Answer Correct ? | 20 Yes | 6 No |
Post New Answer View All Answers
Should you use singleton pattern?
How to restrict a member of a class from inheriting by its sub classes?
Is call by reference possible in java?
Difference between operator overloading and function overloading
How would you format a date in java? I.e. In the ddmmyyy format?
What is collection sort in java?
What are the uses of synchronized keyword?
How is java created?
What is java argument list?
What is %02d?
What is methods in java?
Is null a string or object in java?
What is the exact difference in between Unicast and Multicast object? Where will it be used?
What is the difference between the direct buffer and non-direct buffer in java?
Implementations of set interface?