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!

Magic of toString() whats the trick?

807600Sep 6 2007 — edited Sep 6 2007
I understand that toString() method id defined in Object class and even if our class do not override the toString() method , when we concate , the output is to our class specific i.e. Classname@hexadecimaldegit.
How the VM manage to do this when there is no method overriding.

Thanks for your concern.(Due to your service I do not have to join any tutorials)
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Oct 4 2007
Added on Sep 6 2007
15 comments
386 views