function of extends and implements keywords?
Answers were Sorted based on User's Feedback
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 |
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 |
Can I use javascript to submit a form?
What is bean? Where can it be used?
What are the thread-to-thread communcation?
What are the different class loaders used by jvm?
Describe responsibilities of Activator?
Explain Object Serialization and it can be used?
Wt is the main difference between Java and Java J2EE and Advanced java?
Name three subclasses of the component class?
Should synchronization primitives be used on bean methods?
What is the difference between system.out ,system.err and system.in?
whats is mean by tiles in struts
how to use debug in my elipse to solve problems that exist in my project