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
What is an example of a keyword?
State some advantages of java?
Explain wait() method of object class ?
What is %d in printf?
What is object data type?
Explain different types of thread priorities ?
Is java platform independent?
Explain a few methods of overloading best practices in java?
How would you use Bubble Sort to sort the number of elements?
What is the file extension for java?
What is thread safe in java?
How do you create an array in java?
Does variable declaration allocate memory?
Which api is provided by java for operations on set of objects?
What is native method in java?