Java Coder
Which class is extended by all other classes?
2 Answer(s)      2 years and 2 months ago
Posted in : Java Beginners

Hi,

Which class is extended by all other classes?

thanks,

Advertisement
View Answers

April 16, 2013 at 6:04 PM


Hi,

The object class of Java is extended by all other classes.

For more about abject class read this article link:

http://www.roseindia.net/java/beginners/ObjectClass.shtml

Thanks,



April 16, 2013 at 6:10 PM


Hi friend,

In a class hierarchy a child/sub class can extend any of its public, non-final parent/base class. In Java java.lang.Object class is a root class of all other classes so, the java.lang.Object class can be extended by all other classes.










Related Tutorials/Questions & Answers:
Advertisements