This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line!
See this thread for details.
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


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.
 
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com
 
subject: Does every interface extend class Object?
 
It's not a secret anymore!