Option 1:
String newStr = someStr + 3 + \"]\";
Option 2:
String newStr = someStr + \"3\" + \"]\";
Which o
I would recommend Jprofiler as a great java application profiling tool that helped me find lots of memory problems.
I don't think option 1 and 2 have a big difference in terms of memory usage, especially if it is for a desktop application.