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 is the difference between the reader/writer class hierarchy and the inputstream/outputstream class hierarchy in java programming?
What is finalize method?
how system.out.println() works?
Tell me about different OOPS concepts.
What are the drawbacks of singleton class?
How do u provide security in java
How can an object be unreferenced?
Package1 and Package2 both have a method name lets say "methodA" with different implementation. When I import both the packages in a java class how can I use both the methods?
What are access modifiers?
What is parsing in java?
Explain about features of local inner class?
Can java list be null?