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
What is the use of a copy constructor?
What is xslt in java?
What is immutable in java?
What is the method in java?
How many bytes is a unicode character?
Why do we need strings in java?
What is stream api in java8?
What is parsing a sentence?
What is class variable java?
What is difference between local variable and global variable?
What is use of set in java?
What is final method?
What is meant by tab pans?
Is ruby built on java?
Can we sort array in java?