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
Is it compulsory for a try block to be followed by a catch block in java for exception handling?
What are the 4 types of research methods?
Give us the name of the list layoutmanagers in java?
What is the destroy method?
Can we have two methods in a class with the same name?
How do you convert an int to a string in java?
Why are data types important?
How do you insert a line break?
What are the differences between wait() and sleep()?
What is the difference between throw and throws keywords?
What technique can be employed to compare two strings?
What is equals method in java?
What is nested interface?
When is the finalize() called?
What do you understand by access specifiers in Java?