String Immutable

please tell me "why String class in java is immutable?" actually i want to know what is reason so that Java required String class made to as Immutable?
[165 byte] By [PatsDovea] at [2007-10-3 2:20:24]
# 1
This question is asked a lot, please Google it or search the forum next time. http://www.acooke.org/andrew/immutable.html
zadoka at 2007-7-14 19:19:18 > top of Java-index,Desktop,Developing for the Desktop...
# 2
Refer the Links... http://www.programmersheaven.com/2/FAQ-JAVA-String-Is-Immutable http://www.janeg.ca/scjp/pkglang/immutable.html
rkvinayaka at 2007-7-14 19:19:18 > top of Java-index,Desktop,Developing for the Desktop...
# 3

Hi,

You know how many types of Strings in java ?

1) String class - Immutable and Thread Safe.

2) StringBuffer Class- Mutable and Thread Safe

3) String Builder Class - Muitable and Not Synchronized.

Each of them has its own feature and use.

Whenever u want to use application where its need constant String u can use String class,

This is deveopment specific from initially.

It is clear,

arpita_jsr08a at 2007-7-14 19:19:18 > top of Java-index,Desktop,Developing for the Desktop...