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
Jeanne Boyarsky
Ron McLeod
Paul Clapham
Liutauras Vilda
Sheriffs:
paul wheaton
Rob Spoor
Devaka Cooray
Saloon Keepers:
Stephan van Hulst
Tim Holloway
Carey Brown
Frits Walraven
Tim Moores
Bartenders:
Mikalai Zaikin
Forum:
Java in General
Creating new Strings
jose chiramal
Ranch Hand
Posts: 266
posted 14 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
String
s ="abc" // Creates one String object and one reference variable. How ?
String s = new String("abc") // Creates two objects, and one reference variable. How ?
Can someone please explain the above two comments.
Pushkar Choudhary
Rancher
Posts: 425
I like...
posted 14 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
This question has been asked many times. Please
SearchFirst
.
A couple of threads discussing the same
here
and
here
.
Yogesh Gnanapraksam
Ranch Hand
Posts: 133
posted 13 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
Also this
thread
could be useful
https://coderanch.com/t/488922/Java-General/java/new-keyword-objects-Java#2199295
Don't get me started about those stupid
light bulbs
.
reply
reply
Bookmark Topic
Watch Topic
New Topic
Boost this thread!
Similar Threads
a question on creating string object.
Difference between String
when will == return true for Strings
String literal objects in String pool
Object Create
More...