Originally posted by Jitender Kumar:
Are there any classes which donot extend java.lang.Object?
If not, why are the methods in Object made protected instead of public? ...
Good question! Indeed, all classes extend Object.
Two methods in Object (clone and finalize) have protected access. To understand why, see
"using a trick with protected" from Appendix A in Bruce Eckel's
Thinking in Java.