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:
Campbell Ritchie
Ron McLeod
Paul Clapham
Tim Cooke
Devaka Cooray
Sheriffs:
Liutauras Vilda
paul wheaton
Rob Spoor
Saloon Keepers:
Tim Moores
Stephan van Hulst
Tim Holloway
Piet Souris
Mikalai Zaikin
Bartenders:
Carey Brown
Roland Mueller
Forum:
Java in General
How many String objects?
raja singh kumar
Ranch Hand
Posts: 212
1
posted 6 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
When I create a new
String
("abc") how many objects are created and where are they created? If there are 2 objects created 1 in the heap memory and 1 in String pool then what is the use of intern?
Ganesh Patekar
Bartender
Posts: 1251
87
I like...
posted 6 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
What do you think how many objects are created? and why? Worth reading -->
Strings, Literally
How To Ask Questions On Ranch
How To Use BB Tags On Ranch
Java Beginners FAQ
Ranch Usage FAQ
Politics is a circus designed to distract you from what is really going on. So is this tiny ad:
We need your help - Coderanch server fundraiser
https://coderanch.com/wiki/782867/Coderanch-server-fundraiser
reply
reply
Bookmark Topic
Watch Topic
New Topic
Boost this thread!
Similar Threads
String literal Pool doubt
Stings: how many objects created?
String
String handling.
what is Stringpool and heap
More...