what is interned string?
Answers
Answered by
3
Answer:
String Interning is a method of storing only one copy of each distinct String Value, which must be immutable. By applying String. intern() on a couple of strings will ensure that all strings having the same contents share the same memory.
Explanation:
Hope it help you.
Similar questions