On some blog and site even on stack overflow, I can see similar ans for below question
String s = new String("Test");
Will create two object as literal "Test" will take place in pool.
So how StringBuffer perform in below case.
StringBuffer sb = new StringBuffer("BufferTest");
Is the literal "BufferTest" also take place in pool ?
if yes then how StringBuffer save String garbage collection ?