Skip to Main Content

New to Java

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

[code]Object obj = String.class;[/code]

joshuaOct 10 2006 — edited Oct 10 2006
Object obj = String.class;
How is the above possible?
String.class returns reference of Class.
So does that mean that Object and Class fall in the same hierarchy
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Nov 7 2006
Added on Oct 10 2006
3 comments
201 views