A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
OCM Java EE 6 Enterprise Architect Exam Guide
this week in the
Programmer Certification (SCJP/OCPJP)
Does String Object are actually of Immutable type ?
Joined: Dec 01, 2004
Dec 01, 2004 03:30:00
I heard that
Object can be changed without creating the new String Object , by using Reflection , then how we can say Strings are immutable
Joined: Aug 03, 2002
Dec 01, 2004 03:55:00
Give us an example of the code that does this, please.
Ask a Meaningful Question
Getting someone to think and try something out is much more useful than just telling them the answer.
It is sorta covered in the
JavaRanch Style Guide
subject: Does String Object are actually of Immutable type ?
How is this possible if Strings are immutable?
Strings Immutable ??
Read-only objects in cache
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014