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
How many static init can you have?
What are classloaders?
Which is better singleton or static class?
What is meant by oops concept in java?
What is a databasemetadata?
Does java have a compiler?
Can we serialize static variables in java?
What is console based application in java?
What is the use of System class?
What methods are used to get and set the text label displayed by a button object?
What is the benefit of inner / nested classes ?
What is object-oriented paradigm?
Explain the concept of proper inheritance?
What is the syntax and characteristics of a lambda expression?
What is return data type?