How can you manipulate String in Java without creating String garbage?

Solution

StringBuffer and StringBuilder provides the feature to manipulate the existing object as these class are mutable classes in java.

Share this thread

Comments

Comments
comments powered by Disqus

Navigation

Social Media