The Artima Developer Community
Sponsored Link

Java Buzz Forum
Why the String class is Immutable

0 replies on 1 page.

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 0 replies on 1 page
Java Experience

Posts: 58
Nickname: javaexp
Registered: Dec, 2012

Java Experience is a place for Java, web, spring, android tutorials
Why the String class is Immutable Posted: Jan 1, 2013 2:03 PM
Reply to this message Reply

This post originated from an RSS feed registered with Java Buzz by Java Experience.
Original Post: Why the String class is Immutable
Feed Title: Java Experience
Feed URL:
Feed Description: A place for all type of Java web tutorials
Latest Java Buzz Posts
Latest Java Buzz Posts by Java Experience
Latest Posts From Java Experience

There are many reasons due to the string class has been made immutable in Java. These reasons in view, concurrency issues, security issues and performance issues. Here is a list of various valid reasons to go for immutable string class: Concurrency 1. The use of immutability is a best practice and has been recommended by [...]

Read: Why the String class is Immutable

Topic: Instance initializer blocks and constructor in Java Previous Topic   Next Topic Topic: What are Co-variant return types in Java

Sponsored Links


Copyright © 1996-2017 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use - Advertise with Us