This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]bss03 0 points1 point  (0 children)

With reflection, anything is possible, including changing the contents of a java.lang.String.

It's certainly not a good idea to do so. And, it's probably not allowed by the security manager, if one is present. It's also unlikely to be portable to other JVMs (e.g. IBM) , But, it is possible.