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 declaration and definition in java?
What are the types of strings?
Name the runtime exceptions that occurs frequently?
Definition for connection pooling?
What is the purpose class.forname method?
Write the code for Palindrome ?
How will you calculate the depth of a binary tree if the tree contains 15 nodes?
How do you remove duplicates in java?
How to sort an array in java without using sort method?
difference between arraylist and linkedlist otherthan performance
What is primitive data type in java?
What are functions in java?