Skip to Main Content

Java Programming

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Strings are immutable in java . why ?

807588Aug 5 2009 — edited Aug 11 2009
Dear All ,

Why String are immutable in java ?
What is the benefit behind this ?
Why not other types like date is immutable ?

What are different reasons/facts which led Sun to make String immutable ?

Thanks
Suren
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Sep 8 2009
Added on Aug 5 2009
32 comments
899 views