• Post Reply Bookmark Topic Watch Topic
  • New Topic

Can interface extends a super interface??

 
Hades Pan
Ranch Hand
Posts: 106
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
EXP: public interface List extends Collection
 
kinnu jemmy
Greenhorn
Posts: 18
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
yes.

in this eg. apple contain both the methods.
see JLS chapter 9 for more info.
kinnu
 
vishal avad
Ranch Hand
Posts: 45
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi hades
an interface can only be extended by the interfaces and not by classes rest of the things r already explained in previous reply.
 
my overalls have superpowers - they repel people who think fashion is important. Tiny ad:
the new thread boost feature brings a LOT of attention to your favorite threads
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!