File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Programmer Certification (SCJP/OCPJP) and the fly likes Does every interface extend class Object? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Certification » Programmer Certification (SCJP/OCPJP)
Bookmark "Does every interface extend class Object? " Watch "Does every interface extend class Object? " New topic
Author

Does every interface extend class Object?

Gyanesh Sharma
Ranch Hand

Joined: Nov 27, 2005
Posts: 47
I know every class extend Object by default. Is this true with Interfaces too?
A related question would be, can an interface extend another class?

Thanks
Steve Morrow
Ranch Hand

Joined: May 22, 2003
Posts: 657

Interfaces do not extend Object. Interfaces may extend other interfaces.
 
Don't get me started about those stupid light bulbs.
 
subject: Does every interface extend class Object?
 
Similar Threads
John Hunt mock: Q30
Inner classes must extend?
java.lang.Object is a class or Interface
inner class
Anonymous class