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...

function of extends and implements keywords?

Answer Posted / jitender arora

Extending means adding new method definitions. Implementing
means satisfying the existing interface contract by writing
the proscribed method bodies.

When you derive a class from a base class we say the
derived subclass extends the base class. An interface can
also extend another interface. In contrast, when a class
provides the methods (possibly abstract) necessary to
conform to some interface we say that class implements the
interface. Extending a class is closely related to
implementing an interface. A new class can extend at most
one superclass, but it may implement several interfaces.
In interface may extend several other interfaces (though a
class implements an interface). You sometimes do this to
give you a short same to stand for the requirement
implementing half a dozen related interfaces.

Is This Answer Correct ?    2 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the difference between ear, jar and war file?

1115


Why use POJO when I can use hashmap

2632


What is a policy?

2287


Have you used threads in Servelet?

2501


What are various types of class loaders used by jvm?

975


What is chat area? Explain.

1010


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

1108


When is the best time to validate input?

1094


why static class in java

1756


How task's priority is used in scheduling?

2285


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

2195


Why doesn’t the focus feature on the tag work in every circumstance?

1088


What is the immediate superclass of the applet class?

1066


What is table mutation and how do you avoid it?

2455


Name three subclasses of the component class?

1088