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

cud u help me ... i am struggling with this question... to find all the subsets of a given set for ex.... a,,b,c shud give all the subsets.... i gt the program in c bt nt able to get it in java..... help needed ..

2210


Do you think that java should have had pointers?

1060


What is the diffrence between a local-tx-datasource and a xa-datasource? Can you use transactions in both?

1033


Explain the different types of memory used by jvm?

1146


Why do threads block on i/o?

1261


Is there a guarantee of uniqueness for entity beans?

1012


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

1137


Explain what is synchronization?

1099


What is the difference between RMI registry and OS Agent?

1147


What are the sequence of steps to write pub or sub model kind of application?

2519


Explain the advantages and disadvantages of detached objects.

1030


When a thread blocks on i/o, what state does it enter?

1095


What is a tasks priority and how is it used in scheduling?

1061


What is the difference between the font and fontmetrics classes?

1159


What happens when a thread cannot acquire a lock on an object?

1038