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 does the exclamation mark mean in java?
Explain about collection interface in java?
What is the exact difference in between unicast and multicast object? Where we will use?
What data structures are used to perform recursion?
What are constants?
What is an object class?
Does chrome use java?
Are arrays passed by reference in java?
why Interface used?
Is array an object in java?
how can you take care of mutual exclusion using java threads? : Java thread
What is the difference between jfc & wfc?
What are sets in java?
What is object-oriented programming?
What are the actions that can occur when a thread enters blocked state?