when to for abstract class and when to go for interface
Answer Posted / sumit kumar
if your class design have some common and some different
behavior then go for - abstract class
if your class design have only different behavior then go
for interface.
Is This Answer Correct ? | 12 Yes | 2 No |
Post New Answer View All Answers
What is default switch case? Give example.
Is integer immutable in java?
What are register variables what are the advantages?
how is final different from finally and finalize in java?
What is thread life cycle?
When will we prefer to use set and list in java and why?
What is a dynamic array java?
What is lexicographically smallest string?
What are the differences between processes and threads?
How do you allocate memory to object?
Can we overload destructor in java?
What is argument in java?
What are advantages of exception handling in java?
Is it possible to instantiate the abstract class?
What is an immutable object? How do you create one in java?