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
How dead lock situation occurs in java and how you can identify it?
Why volatile is used in java?
What are the two types of java programming?
What is the advantage of functional interface in java 8?
How do you identify independent and dependent variables?
How can I become a good programmer?
What is procedure overloading?
Are private methods final?
Which method cannot be overridden in java?
What is string literal in java?
How do you compare characters in java?
What are thread groups?
What is the main function in java?
Is 0 an even number?
How many types of keywords are there?