Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

interface extends interface ?

 
srinivas bolloju
Ranch Hand
Posts: 112
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
is it true that interface extends interface ?
eg's in API :
public interface List extends Collection
public interface ListIterator extends Iterator
here all List,collection,ListIterator,Iterator all are interfaces.
i thought we should implement interfaces not extend them...
pls help
thanks in advance
 
Talal Shaikh
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Classes Implement Interfaces Whereas Interfaces extend interfaces
 
Valentin Crettaz
Gold Digger
Sheriff
Posts: 7610
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You may want to have a quick look at JLS 9.1.2 Superinterfaces and Subinterfaces
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic