when to for abstract class and when to go for interface
Answers were Sorted based on User's Feedback
Answer / 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 |
What are the operands of instanceof operator?
What are the disadvantages of using inner classes?
Which types of exceptions are caught at compile time?
Explain what is encapsulation?
Is java ee a framework?
when asub class inherits a super class and overrides a public method of super class in sub class(public method in super class). why these methods needs to be public in sub class. (otherwise compile time error).
How Vector class is synchronized,How to build user defined class as synchronized?
What is Marker interface in java? and what is clone?
what is the difference between HashMap And HashTable?
What java ide should I use?
Explain about main thread in java?
What means public static?