Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

when to use abstract class and when to use interface?

Answer Posted / surendra

Always prefer to interface until you are not sure the behavior
of operations.

chose the abstract class if you are sure for some common behaviors need to share of all objects.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What about interrupt() method of thread class ?

1124


What is toarray method in java?

1167


What is difference between throw and throws ?

1206


Why are lists ordered in java?

1063


What is empty list in java?

1136


How to use arraylist in java netbeans?

1096


What is the difference between equals() and == in java?

1019


What is volatile keyword in java

1184


What is the use of :: in java?

1078


What is sizeof () operator?

1031


Why do we declare a class static?

1248


What is string manipulation?

1063


Explain the difference between transient and volatile in java?

1054


Can java list be null?

1038


What are methods?

1076