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

When should the method invokelater() be used?

1014


What is difference between java and java ee?

1022


Is string is a class in java?

952


What type of variable is error flag?

1064


What data type is a string?

1005


Which command from the jdk compiles a java program?

976


What are thread groups?

996


Why Java is not pure Object Oriented language?

1096


What are different data structures in java?

1036


What are the major drawbacks of external iteration?

1057


What is pass by value?

939


What are implicit objects in java?

971


What is oop in java?

1045


Is it possible to override private or static method in java?

991


What is json parser in java?

1055