Search...
FAQs
Subscribe
Pie
FAQs
Recent topics
Flagged topics
Hot topics
Best topics
Search...
Search within Java in General
Search Coderanch
Advance search
Google search
Register / Login
Post Reply
Bookmark Topic
Watch Topic
New Topic
programming forums
Java
Mobile
Certification
Databases
Caching
Books
Engineering
Micro Controllers
OS
Languages
Paradigms
IDEs
Build Tools
Frameworks
Application Servers
Open Source
This Site
Careers
Other
Pie Elite
all forums
this forum made possible by our volunteer staff, including ...
Marshals:
Tim Cooke
Campbell Ritchie
paul wheaton
Jeanne Boyarsky
Ron McLeod
Sheriffs:
Paul Clapham
Devaka Cooray
Saloon Keepers:
Tim Holloway
Carey Brown
Piet Souris
Bartenders:
Forum:
Java in General
String literal pool
anish jain
Ranch Hand
Posts: 129
posted 13 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
When we say
String
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?
john sal
Ranch Hand
Posts: 94
posted 13 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
Following link contains explanation:
https://coderanch.com/t/381045/java/java/String-Memory-Allocation
reply
reply
Bookmark Topic
Watch Topic
New Topic
Boost this thread!
Similar Threads
String difference
String literal comparisons - help!
Behaviour of + in case of String literals
String pool
BJO - String literal pool contains object ???
More...