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
Why String is immutable in Java?
Rd Dari
Ranch Hand
Posts: 214
I like...
posted 11 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
Hi all,
Please clear why
String
is immutable in
java
with a understandable example?
Thanks !!
Jaikiran Pai
Sheriff
Posts: 10445
227
I like...
posted 11 years ago
2
Number of slices to send:
Optional 'thank-you' note:
Send
See
previous discussions
[
My Blog
] [
JavaRanch Journal
]
Satyaprakash Joshii
Ranch Hand
Posts: 440
4
posted 11 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
one reason is..immutable objects are simple...less error prone...once created cant be changed and if multiple threads are accesing at same time still it doesnt cause any issue...
Consider Paul's
rocket mass heater
.
reply
reply
Bookmark Topic
Watch Topic
New Topic
Boost this thread!
Similar Threads
Strings
Immutable classes in java
why string
why immutable string object ?
Why String in Java is made immutable?
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
More...