It's not a secret anymore!
The moose likes Java in General and the fly likes Does interfaces extend the object class Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


JavaRanch » Java Forums » Java » Java in General
Reply Bookmark "Does interfaces extend the object class " Watch "Does interfaces extend the object class " New topic
Author

Does interfaces extend the object class

budsy remo
Ranch Hand

Joined: Sep 20, 2008
Posts: 103
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

Joined: Oct 27, 2005
Posts: 19232

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.


SCJP 1.4 - SCJP 6 - SCWCD 5
How To Ask Questions How To Answer Questions
budsy remo
Ranch Hand

Joined: Sep 20, 2008
Posts: 103
Thanks a lot Rob Spoor .
Rob Spoor
Sheriff

Joined: Oct 27, 2005
Posts: 19232

You're welcome.
 
I agree. Here's the link: http://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: Does interfaces extend the object class
 
Similar Threads
Array class?
why finalize() can't be defined as private?
Object Class
GC
About getClass() method usage