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
Which class should you use to obtain design information about an object in java programming?
What is a percentage sign called?
Explain access specifiers?
Define an enumeration?
Explain the difference between static and dynamic binding in java?
Difference between final and effectively final ?
Is java developer a good career?
What is a top level class in java?
What is nested loop? What is dangling else condition in it?
What is an class?
What is object class in java?
Can we have a try block without catch block?
What is array initialization in java?
Explain about member inner classes?
how to deploy tomcatserver to weblogic server? write d following steps?