Answer Posted / devendra.m
Both Absstract classes and interfaces can be used when there
is a difference in subclass types.
When subclass type is totally different then implement the
interfaces.When subclass type is partially common in the
super type then extends the abstract class.Internally some
comman behaviour is there incase of abstract classes.
incase of interface we can achieve multiple inheritace.but
incase of classes we can not achieve multiple inheritace.
| Is This Answer Correct ? | 9 Yes | 3 No |
Post New Answer View All Answers
What is the synonym of procedure?
Can we sort array in java?
What is an empty string in css?
Can a class have multiple superclasses?
What is difference between equal and == in java?
What is the size of int?
What are constructors in java?
What is the private method modifier?
What is close method? How it's different from Finalize & Dispose?
What is the default access specifier for variables and methods of a class?
What is the purpose of using break in each case of switch statement?
Why are there no global variables in java?
Give the hierarchy of inputstream and outputstream classes.
How can I right-justify a string?
How are variables stored in memory?