I've been writing Java for about 15 years. There hasn't been a single instance where I've used String.intern(). I'm starting to think that there is never an appropriate place for it. What do you get from it? Anything else other than the ability to reliably use == for String comparison instead of .equals()?
Nevermind the architecture astronauts saying that the string intern pool is actually global state and global state is always problematic.
Nevermind the architecture astronauts saying that the string intern pool is actually global state and global state is always problematic.