More than 3000 questions in repository. There are more than 900 unanswered questions. Click here and help us by providing the answer. Have a video suggestion. Click Correct / Improve and please let us know.
Ans. As String is immutable so by maintaining pool area we can refer the object to same area if they are with same content. But when it comes to string buffer or builder then due to mutable property if we do so then all the objects referring to that area will from now has new content.. So as to avoid this pool is present only in string.
Help us improve. Please let us know the company, where you were asked this question :