background image

  Two new objects are created
  one StringBuffer and one String
  String result = “”;
  For (int i=0; i < 20; i++) {
  result += getNextString();
  }
  Better coded as:
  String result = “”;
  StringBuffer buffer = new StringBuffer();
  For (int i=0; i < 20; i++) {
  buffer.append(getNextString())
  }
  Result = buffer.toString();
 
  2. Java Memory Leaks
  3. Memory Footprint
 
  我的理解是这个 Java 工具软件公司为了提供给 Java 开发者好的工具,所以对 Java
内存管理的日常问题和我们编程中常犯的内存错误进行研究