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

What is JTS?

2429


Is infobus easy to use?

1079


How would you reatach detached objects to a session when the same object has already been loaded into the session?

1259


Write a singleton program?

1103


Is there a guarantee of uniqueness for entity beans?

1057


Define aop(assepct oriented programing)?

1247


Difference between swing and awt?

1381


When is the best time to validate input?

1147


What is colon_pkg_prefixes and what is its use?

2586


How is a java object message delivered to a non-java client?

1098


What’s jboss jbpm?

1080


What is the argument type of a programs main() method?

1169


What is the difference between the font and fontmetrics classes?

1211


what is a portable component?

2067


Whats new with the stop(), suspend() and resume() methods in jdk 1.2?

1102