when to for abstract class and when to go for interface
Answer Posted / sumit kumar
if your class design have some common and some different
behavior then go for - abstract class
if your class design have only different behavior then go
for interface.
| Is This Answer Correct ? | 12 Yes | 2 No |
Post New Answer View All Answers
Why do we use bufferedreader?
Can you explain inner class.
What is a get method?
What is a Null object?
What is the length of a string?
What is passed by reference and pass by value ?
Can extern variables be initialized?
Is it possible to define a method in java class but provide it’s implementation in the code of another language like c?
What are JVM.JRE, J2EE, JNI?
Explain the advantages of packages in java?
What is identifier with example?
How does enum work in java?
What is meant by structural programming?
Difference between ‘is-a’ and ‘has-a’ relationship in java?
What happens when heap memory is full?