
What should i use String or StringBuffer?


The main benefit of String is immutability which differentiate it from Stringbuffer but in case of string manipulation this advantage becomes biggest disadvantage and creates lots of garbage also using "+" operator for String concatenation is very slow as compared to StringBuffer.append()method which cost you some performance.
If you are facing any programming issue, such as compilation errors or not able to find the code you are looking for.
Ask your questions, our development team will try to give answers to your questions.