3 ms·
Java does string interning too: all constant Strings are stored in an interned cache, as well as Strings that have manually been interned with String.intern() m
by saagarjha 9y ago
Java does string interning too: all constant Strings are stored in an interned cache, as well as Strings that have manually been interned with String.intern() method (which makes teaching "don't use == to compare Strings" in AP Computer Science all the more difficult!)