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

Abstract(patially implemented) class can be used as a
common base class for an application it has all property of
class except it cannot be instantiated.it provide default
behavior.

interface is mearly a specification,nothing implemented for
any standalone project which can be changed at will its
more design flexible and it can be utilized to model
multipleinheritance.

Is This Answer Correct ?    56 Yes 30 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Wha is the output from system.out.println(“hello”+null); ?

1156


What is difference between string and new string?

1041


What is sizeof () operator?

983


What is the purpose of abstract class?

1021


Explain what is encapsulation?

1097


Is vector thread safe in java?

1066


What is the difference between a synchronized method and a synchronized block?

1079


What does n mean?

1007


What are the differences between checked exception and unchecked exception?

976


Explain with example the concept of constant variable in java.

1201


What is the difference between the Reader/Writer class hierarchy and the InputStream/OutputStream class hierarchy?

1145


What are jee technologies?

1022


What does a boolean method return?

1249


What is passing value java?

1070


What is the original name of java?

1123