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 |
Why do we use public static with the main function in Java?
13 Answers College School Exams Tests, Infosys,
Why super is first line in java?
Read data from console and print in one file. That would be in C:\temp ? Thanks, Bose
3 Answers Oracle, Surya Software,
What language is an assembler written in?
Define inheritance with reference to java.
What is sortedmap in java?
What is a pattern what is an anti pattern?
What is broken and continue statement?
Is it possible to instantiate the abstract class?
What are assertions in java?
Explain about fail safe iterators in java?
What is member in java?