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

What is meant by method chaining?

1202


What is message driven beam?

1120


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

2393


Why a client should be multithreading? Explain.

1133


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

1099


what are the activation groupworks?

2250


What is jboss?

1080


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

1107


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

1146


How would you detect a keypress in a jcombobox?

1187


Why are my checkboxes not being set from on to off?

1179


Do I need to import javlang package any time? Why ?

1149


What are the different methods of identifying an object?

1127


what are getters and setters in Java with examples?

1833


Explain the different types of memory used by jvm?

1194