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 the difference between system.out ,system.err and system.in?

1064


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

1045


Explain the difference between object state and behavior?

1011


Explain phantom read?

2178


What is the difference between session and entity beans?

1068


Explain about thread synchronization inside a monitor?

2496


What is TL and its use?

2419


If we opened Windows Internet Explorer 4 times, does it starts 4 processes or 4 threads?

2183


Can constructors be synchronized in java?

1076


Write a program to show synchronization?

1097


how i secure my site with the https protocol.what are the steps?

2291


What is a session? Can you share a session object between different theads?

946


Explain how will the struts know which action class to call when you submit a form?

929


difference between  ejb,struts,hibernate,spring and jsp

2822


What are callback interfaces?

1062