Register now or log in to join your professional community.
The answer is no. The whole idea behind using String Buffer is not to use string pool as that will make it behave like a normal String class if it uses string pool. String Buffer creates a new object in Heap.
No, String buffer do not have a String constant pool because String buffer is mutable class.
Where as String has constant pool because it is immutable in java.
Do you need help in adding the right keywords to your CV? Let our CV writing experts help you.