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!

String Class

881147Sep 7 2011 — edited Sep 11 2011
[code
]String name="somename";
String name1="some";
name=name1;



in this case what will happen to the name variable?the name has longer string(which means hold more stack on the memory) than name1.
also will the java resize the name or wat?can you guys explain explicitly please?

thanks.
This post has been answered by EJP on Sep 10 2011
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Oct 9 2011
Added on Sep 7 2011
6 comments
154 views