They both mean "inherits from." They're both a way to specify a parent-chld type relationship. In certain cases implements is the only correct syntax, and in other cases, extends is the only correct syntax. You don't get a choice of which one to use once you decide the class/interface permutation involved.
> thx jverd.i wonder why does implement allows u to
> inher mutiple classes while extend allows only one
> class.
It's not an implements vs extends issue. It's an interfaces vs. classes issue.
class Class1 extends Class2, Class3 // not allowed
class Class1 extends Class2 implements Int1, Int2 // allowed
interface Int1 extends Int2, Int3 // allowed
You implement interfaces and extend classes. when you implement an interface you apply implementation to the methods in the interface. When you extend a class you inheret the methods from that class. You can only extend one class and you can implement multiple classes because that is how they developed java.
We can inherit from multiple interfaces because interfaces don't allow implementation. Java allows multiple inheritance of interface, but not of implementation, so we can inherit from multiple interfaces (which have no implementation) but not from multiple classes (which might have implementation).
> mutiple
> interface could be extended
By another interface, yes.
> and implemented
By a class, yes.
> but a
> class could only be extended and implemented one at a
> time?
Extended, yes. A class cannot be implemented. There's no "implements SomeClass".