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
Why are getters and setters used?
How to sort array in descending order in java?
What is dynamic array in java?
What are variable arguments or varargs?
What is the output of the below java program?
Can you call a method in a method?
What’s a deadlock?
What is constructor chaining and how is it achieved in java?
Are registers volatile?
Can we convert stringbuilder to string in java?
Explain notifyall() method of object class ?
whar are the draw backs of programming lang step by step in Clang and next in C++ and next and in Java nad in .Net
What are controls and their different types in awt?
Can we have multiple classes in single file ?
make a method which any number and any type of argument and print sum of that arguments.....