Latest posts by Prasad Kharkar ( see all ) In the previous post, we have learned about string immutability. Another interesting thing about strings in java is The String Constant Pool. So what is it exactly? It is a special place where the collection of references to string objects are placed. What makes this so special? we will try to understand it now. In our tutorial about String immutability, we have learned that string literals cannot be modified and multiple reference variable can refer to the same string literal.
Read full article from The String Constant Pool | theJavaGeek
No comments:
Post a Comment