A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
Java 8 in Action
this week in the
Programmer Certification (SCJP/OCPJP)
Does every interface extend class Object?
Joined: Nov 27, 2005
Dec 01, 2005 11:09:00
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?
Joined: May 22, 2003
Dec 01, 2005 11:12:00
Interfaces do not extend Object. Interfaces may extend other interfaces.
I agree. Here's the link:
subject: Does every interface extend class Object?
John Hunt mock: Q30
Inner classes must extend?
java.lang.Object is a class or Interface
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014