A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
The Java EE 7 Tutorial Volume 1 or Volume 2
this week in the
jQuery UI in Action
Java in General
String literal pool
Joined: Feb 03, 2010
Aug 04, 2011 06:11:11
When we say
s="hello", then "hello" object will be created in heap.
I want to know if this object is created in heap with reference stored in the string literal pool. Is this right? or String literal pool is separate memory area outside heap?
Joined: Jul 30, 2010
Aug 04, 2011 06:24:17
Following link contains explanation:
I agree. Here's the link:
subject: String literal pool
Behaviour of + in case of String literals
BJO - String literal pool contains object ???
String literal comparisons - help!
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014