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 can you read content from file in java?
What is hashset in java?
How can we avoid including a header more than once?
What is java ceil?
What state does a thread enter when it terminates its processing in java programming?
Explain restrictions on using enum?
How can we access some class in another class in java?
What is a nested structure?
What is this () in java?
What is the purpose of nested class in java?
What do you understand by abstract classes?
How do I know if java is installed?
What is thread count in java?
can rmi and corba based applications interact ?
When does a class need a virtual destructor?