• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Does interfaces extend the object class

 
budsy remo
Ranch Hand
Posts: 103
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
To be specific does the interface Runnable extends Object class ?? According to me it's no but somebody put a doubt in my head ,so please answer . Thank you .
 
Rob Spoor
Sheriff
Pie
Posts: 20669
65
Chrome Eclipse IDE Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Interfaces cannot extend a class, not even Object. But the objects that implement these interfaces extend Object, either directly or indirectly through its super class.
 
budsy remo
Ranch Hand
Posts: 103
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks a lot Rob Spoor .
 
Rob Spoor
Sheriff
Pie
Posts: 20669
65
Chrome Eclipse IDE Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You're welcome.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic