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

What does those terms actually mean included in the j.d.k i.6?

2173


What is the purpose of using the java bean?

1103


Define packages in java?

1058


What is a file pointer?

1167


Java Compiler is stored in JDK, JRE or JVM?

1563


What is an array length?

961


Difference between string s= new string (); and string s = "abv";?

1255


Why we use multi threading instead of multiprocessing?

1123


How to call one constructor from the other constructor ?

1118


Is boolean a data type in java?

1016


Differentiate between class and structure.

1183


What is a values collection view ?

1149


What is meant by class loader? How many types are there? When will we use them?

1008


What does += mean coding?

996


What is the significance of continue jump statement? Explain with an example.

1351