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

abstract class is used if you are willing to restrict the
creation of an instance.
interface is used if you are willing to write different
functionalities in different implementations.

Is This Answer Correct ?    34 Yes 29 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Which is better stringbuilder or stringbuffer?

868


What is a double vs float?

944


When is the arraystoreexception thrown?

961


Difference between ‘is-a’ and ‘has-a’ relationship in java?

944


What are exception handling keywords in java?

975


What is equlas() and hashcode() contract in java? Where does it used?

1052


Which of the classes will have more memory allocated?

913


Why local variables are stored in stack?

921


What is a “stateless” protocol ?

938


What do you understand by copy constructor in java?

880


Is it possible for yielded thread to get chance for its execution again ?

963


Can I override protected method in java?

1018


What are the restrictions imposed on method overriding?

961


What is static class

1053


What is meant by nested loop?

976