This week's book giveaways are in the Refactoring and Agile forums.
We're giving away four copies each of Re-engineering Legacy Software and Docker in Action and have the authors on-line!
See this thread and this one for details.
Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization 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