Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
The moose likes Programmer Certification (SCJP/OCPJP) and the fly likes extends Object Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Certification » Programmer Certification (SCJP/OCPJP)
Bookmark "extends Object" Watch "extends Object" New topic

extends Object

Don Bosco
Ranch Hand

Joined: Oct 31, 2002
Posts: 108
we say that every class in java is a subclass of Object.
class Test extends Base{
In the above example Test extends Base. Test also extends Object. How is it possible?

SCJP 1.4<p>Wingardium Leviosa!!
Barkat Mardhani
Ranch Hand

Joined: Aug 05, 2002
Posts: 787
because Base extends Object class...
Don Bosco
Ranch Hand

Joined: Oct 31, 2002
Posts: 108
Good point!! Thanks Dude.
It is sorta covered in the JavaRanch Style Guide.
subject: extends Object
Similar Threads
Implicit Constructor calling
please help
Which overloaded method?
Regarding Static methods.
Diiference b/w Overridng and redefining of static methods