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 array in java?
What are different exception types exceptions available in java ?
Can we create an object of private class?
What access modifiers can be used for class ?
What is the use of default method in interface in java? Explain
How to find the given number is a prime number or not by getting input from the user
Which is the class in java?
What is n in java?
Explain when noclassdeffounderror will be raised ?
please send me hr interview questions in it industry
What are the features of junit?
what are different ways in which a thread can enter the waiting state? : Java thread
Is finalize() similar to a destructor?
What are keywords in programming?
What is the use of protected in java?