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 / arvind

If you have to implement all of the fuctionalities provided
by, then in this case you should use interfaces because
they force you to implement all of the methods.

on the other hand if you think you have to imlement few of
them , then better you use abstract class.

Is This Answer Correct ?    1 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Why is stringbuffer called mutable?

1001


Why string is a class?

950


What is application tier?

1123


If an object is garbage collected, can it become reachable again?

1011


What are the properties of thread?

930


What is binary tree in java?

1062


What are measurable parameters?

1081


How is a structure different from array ?

1052


Differentiate between stringbuffer and stringbuilder in java.

1031


What is map and hashmap in java?

1068


What are the five major types of reference sources?

1133


Where is the find and replace?

1008


What is the difference between comparison done by equals method and == operator?

1028


Why is string builder not thread safe?

1069


Why Java doesn’t support multiple inheritance?

1046