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

Depending upon the requirement.

Abstract class---->it contains zero or more abstract methods.

ex HttpServlet and GenericServlet
HttpServlet contains all sre concrete methods but it
declared as a Abstract class.

InterFace--->It contains all abstract methods.

if we extends the abstract class .there is chance to extend
another class.

if we implements the interface we can extends another class

Is This Answer Correct ?    17 Yes 5 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain about local interfaces.

1007


What does module-relative mean?

1066


What is the purpose of the wait(), notify(), and notifyall() methods?

973


Explain what is orm?

1066


What are the benefits of detached objects?

1013


whats is mean by tiles in struts

2142


What is the RMI and Socket?

1012


Why do threads block on i/o?

1182


How to implement RMI in Java?

2833


Explain the difference between object state and behavior?

996


What is the purpose of the notify() method?

1018


Difference between swing and awt?

1176


What is a policy?

2242


What are transaction attributes?

1045


Why do I get a duplicate name error when loading a jar file?

1079