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 enhanced loop in java?
How does list work in java?
Which containers use a flowlayout as their default layout in java programming?
What is the purpose of garbage collection in java? When is it used?
explain different ways of using thread? : Java thread
What is heterogeneous in java?
What are the actions that can occur when a thread enters blocked state?
Differentiate between array list and vector in java.
What is the use of toarray () in java?
What is string [] java?
What is oop principle in java?
What is thread pool in java with example?
I want to store more than 10 objects in a remote server? Which methodology will follow?
What is the size of arraylist in java?
Is java free for commercial?