File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Programmer Certification (SCJP/OCPJP) and the fly likes Interfaces also extend Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Certification » Programmer Certification (SCJP/OCPJP)
Bookmark "Interfaces also extend" Watch "Interfaces also extend" New topic

Interfaces also extend

Ranch Hand

Joined: Oct 31, 2000
Posts: 54
Recently, while i was going thru Khalid Mugal, I came to know that Interfaces also extend (ref. to details of Topic "Interfaces"). I was really surprised cos' wht i knew till date was that Interfaces don't extend, they implement. Is that Book correct or I m. Please let me know. And if that happen can anyone explain how does that happen?
Thanx In advance
Bharatesh H Kakamari
Ranch Hand

Joined: Nov 09, 2000
Posts: 198
Classes implement Interfaces but one interface can extend another interface.

I1 is the super interface. I2 is the sub-interface.
sunilkumar ssuparasmul
Ranch Hand

Joined: Dec 13, 2000
Posts: 142
NOT only they extend single interface but also multiple
for eg
interface I1 extends I2,I3 ..{
is perfectly legal but u cannot extend class like this

"Winners don't do different things<br /> They do things differently"
Ranch Hand

Joined: Oct 31, 2000
Posts: 54
Bharatesh can u please also let me know does interfaces also extend only one class at a time or there can be multiple inheritence in case of interfaces.
I agree. Here's the link:
subject: Interfaces also extend
It's not a secret anymore!