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 |
What is RRL?
why we use main in java?
What will happens, when a thread cannot acquire a lock on an object?
In HashTable I am storing null value..then what is the error it will show
Why use a datasource when you can directly specify a connection details? (in a J2EE application)
How will you pass parameters in RMI? Why do you serialize?
If I wanted to use a solarisui for just a jtabbedpane, and the metal ui for everything else, how would I do that?
cud u help me ... i am struggling with this question... to find all the subsets of a given set for ex.... a,,b,c shud give all the subsets.... i gt the program in c bt nt able to get it in java..... help needed ..
Explain the stub's and skeleton's functionality?
diff vector arraylist
What is source and listener?
What is the difference between system.out ,system.err and system.in?