Follow Our FB Page << CircleMedia.in >> for Daily Laughter. We Post Funny, Viral, Comedy Videos, Memes, Vines...


function of extends and implements keywords?

Answers were Sorted based on User's Feedback



function of extends and implements keywords? ..

Answer / 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

function of extends and implements keywords? ..

Answer / mayur kumar

extends is used to inherite a class and implement is used
to inherit an interface.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Advanced Java Interview Questions

Can I use multiple html form elements with the same name?

0 Answers  


What is the form of storage space in java?

0 Answers  


What is thread deadlock? How to resolve thread deadlock?

3 Answers  


difference between HashMap, Hashset and hashTable?

2 Answers   HCL, Infotech,


How to add new JTabbed pane?

1 Answers  






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

0 Answers  


How can I scroll through list of pages like the search results in google?

0 Answers  


What is jboss?

0 Answers  


What is RMI and what are the services in RMI?

0 Answers  


What is synchronization?

6 Answers   Verizon,


Is jvm a overhead?

0 Answers  


What is codebase in applet?

2 Answers  






Categories