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 are the advantages of unicode?
Does substring start with 0?
When will we use them?
What is the purpose of javac exe?
is there a separate stack for each thread in java? : Java thread
what is thread? What are the high-level thread states? : Java thread
Why is it called a string?
Can you use abstract and final both with a method?
What is the difference between access specifiers and access modifiers in java?
What is java oops?
How do you use compareto method?
What is a classloader in java?
What purpose do the keywords final, finally, and finalize fulfill?
What does a za z0 9 mean?
Can singleton class be inherited in java?