Can we completely disable interning of strings. It might not be really helpful, but just a thought. I can think atleast one point where it could be helpful i.e. during jvm t
String is a final class, and cannot be extended. Therefore, no - you cannot remove the ability to intern Strings in Java.