A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Joined: Jun 04, 2007
Jun 14, 2007 13:21:00
Want to know from which class a
Class is inherited.
Joined: Aug 31, 2004
Jun 14, 2007 14:04:00
If you check the API documentation for String, you will see that String inherits directly from Object...
If there are direct known subclasses, these are also listed in the API. None are shown for String.
"We're kind of on the level of crossword puzzle writers... And no one ever goes to them and gives them an award."
Jesper de Jong
Joined: Aug 16, 2005
Jun 15, 2007 00:49:00
The API documentation also mentiones that class String is
, which means that it cannot be subclassed - so there are no classes that extend String.
Java Beginners FAQ
JavaRanch SCJP FAQ
The Java Tutorial
Java SE 8 API documentation
I agree. Here's the link:
subject: Class inheritance.
Need to know some thing about inheritance.
How can use heritage in XHTML and Expression language.
Kathy Sierra Chapter 2 Selftest Question 13
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2015