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...

In real time project when will we use Abstract class. and
what are the difference between abstract and interface.

Answer Posted / gopi

abstract class means--it has atmost one abstract
method.remaining might be abstract or not.

interface means ---it has almostall abstract methods.u have
only the method specification.

In real time if u want to share the some common features in
the abstract class u have to extends the abstract class.
so, u need not wrote the body to the all the methods.
if u implement interface u should write body to the all
the methods.

Is This Answer Correct ?    12 Yes 13 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How would you detect a keypress in a jcombobox?

1085


Difference between hashmap and hashtable?

1088


To what value is a variable of the string type automatically initialized?

1080


What is an abstract method?

1004


Can I run seam outside of jboss as?

1034


How database connectivity in XML is achieved?

2194


Is it possible to stop the execution of a method before completion in a sessionbean?

1026


Where can I ask questions and make suggestions about seam?

1015


How primary key is implemented in Oracle?

2377


What is the relationship between local interfaces and container-managed relationships?

1075


What is re-entrant. Is session beans reentrant. Is entity beans reentrant?

1017


Describe, in general, how java's garbage collector works?

985


Explain RMI Architecture?

1033


How to implement RMI in Java?

2832


what are memory considerations of jsp compares to other web components?

6464