File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
this week in the
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
String literal comparisons - help!
Behaviour of + in case of String literals
BJO - String literal pool contains object ???
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014