aspose file tools*
The moose likes Java in General and the fly likes Does interfaces extend the object class Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Java » Java in General
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: 19556
    
  16

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 - OCEEJBD 6
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: 19556
    
  16

You're welcome.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Does interfaces extend the object class
 
Similar Threads
GC
why finalize() can't be defined as private?
Object Class
Array class?
About getClass() method usage