when to use abstract class and when to use interface?
Answer Posted / arvind
If you have to implement all of the fuctionalities provided
by, then in this case you should use interfaces because
they force you to implement all of the methods.
on the other hand if you think you have to imlement few of
them , then better you use abstract class.
| Is This Answer Correct ? | 1 Yes | 2 No |
Post New Answer View All Answers
Why is stringbuffer called mutable?
Why string is a class?
What is application tier?
If an object is garbage collected, can it become reachable again?
What are the properties of thread?
What is binary tree in java?
What are measurable parameters?
How is a structure different from array ?
Differentiate between stringbuffer and stringbuilder in java.
What is map and hashmap in java?
What are the five major types of reference sources?
Where is the find and replace?
What is the difference between comparison done by equals method and == operator?
Why is string builder not thread safe?
Why Java doesn’t support multiple inheritance?