Java / Using String
How to resolve substring memory leak issue in java version prior to JDK 1.7?
Simple solution is to trim the string and keep the size of character array according to the length of substring by creating new string object from string object returned by substring method.
More Related questions...