News for hackers. Stuff that matters.
Re:It Can Happen to You by erik_seaberg on Thursday March 04, 2021 @05:00AM (#26340602)
Java does intern string literals and constants, but you can’t rely on reference equality unless you intern every string you create at runtime by formatting or decoding, and it isn’t specified whether that creates strong references that will never be GC’d.

There are no comments on this comment yet.