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 we will use an Interface and Abstract class?

Answer Posted / debapriya patra

Interface:
Through interface we get the multiple inheritance
in java.And we implement interfaces to override the
abstract methods it contains.


Abstract class:

We also use abstract classes to override the
abstract methods that it contains.Otherwise the child class
will mentioned as abstract.

If we wants to prevent a class from instantiation then we
mentioned it as abstract.

Is This Answer Correct ?    25 Yes 18 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the limitations of procedural programming approach?

1110


Is null a string in java?

1161


What mechanism does java use for memory management?

1019


What are the advantages of compiled language?

1109


What is Session reduplication and how its done?

2084


Can a set contain duplicates?

999


Define canvas?

1023


How to connect to a remote database using Applet?

2603


Does java have a compiler?

1088


What are the advantages of java over cpp?

1123


In case of inheritance what is the execution order of constructor and destructor?

1183


What language is java written?

1052


Why stringbuilder is not thread safe?

1080


How will you compute size of a structure?

1265


How hashmap works in java?

1086