I have a question, but in order to get the answer, first of all you need to accept the following fact: in some cases, Java strings can be changed.
This was demonstrated in an Artima article entitled "Hello there." .Quals ("cheers!") == true
Link: http://www.artima.com/weblogs/viewpost.jsp?thread=4864
It still works well in Java 1.6, and it certainly does in some way contradict the popular belief that repeating "Java strings are always immutable."
So my question is simple: is it possible to change a String like this like this, and are there any JVM security settings that can be enabled to prevent this?
source share