equals()
is true
for two strings they will be represented the same instance. While this is exactly what {@link String#intern()} does, this implementation avoids VM specific sideeffects and is supposed to be faster, as neither native code is called nor synchronization is required for concurrent lookup.
|
|
|
|
|
|
|
|
|
|
|
|