It's not a secret anymore!
The moose likes Programmer Certification (SCJP/OCPJP) and the fly likes Object class 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 "Object class" Watch "Object class" New topic

Object class

Madhavi Uddaraju

Joined: Jan 31, 2006
Posts: 1
why object class is the super class why not others
Christophe Verré

Joined: Nov 24, 2005
Posts: 14688

Why would you want other classes to be superclass ?

[My Blog]
All roads lead to JavaRanch
pramodh somashekara
Ranch Hand

Joined: Jan 30, 2006
Posts: 62
Object class is the class from which all other classes are derived hence it is the super class of all classes.
Seema Ahuja
Ranch Hand

Joined: Feb 01, 2006
Posts: 32
Java is a object oriented language...everything in java is an object. the entire langusge is based on the oops concepts..hence it seems logical to make object as parent class of all classes.

BTW? which class do u want to make as a parent class?
I agree. Here's the link:
subject: Object class
It's not a secret anymore!