In a Java program I have to append to a existing string more efficiently so that the performance of the application becomes maximum.
What will be the best code for this?
You should use the StringBuilder class for efficiently appending the strings.
The StringBuilder class works faster in most of the cases.
Check the example at: How To Append String In Java?.