when to use abstract class and when to use interface?
Answer Posted / surendra
Always prefer to interface until you are not sure the behavior
of operations.
chose the abstract class if you are sure for some common behaviors need to share of all objects.
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
What about interrupt() method of thread class ?
What is toarray method in java?
What is difference between throw and throws ?
Why are lists ordered in java?
What is empty list in java?
How to use arraylist in java netbeans?
What is the difference between equals() and == in java?
What is volatile keyword in java
What is the use of :: in java?
What is sizeof () operator?
Why do we declare a class static?
What is string manipulation?
Explain the difference between transient and volatile in java?
Can java list be null?
What are methods?