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

What is the difference between variable declaration and variable initialization?

1030


What’s meant by anonymous class?

1086


What is rule of accessibility in java?

1027


Is main a function?

1057


What is finally block?

1053


What environment variables do I need to set on my machine in order to be able to run java programs?

1016


What is an abstract class and what is it’s purpose?

962


What is jrmp?

968


Can we access instance variables within static methods ?

1093


what is meant by Byte code concept in Java?

1070


Why webdriver is an interface?

1055


What are the two types of exceptions in java? Which are the differences between them?

1100


Explain the difference between serializable and externalizable in java?

1059


What java is used for?

1073


Does a function need a return?

967