In the last topic, someone pointed out that a String is a constant; after it's initialized, to change it, the computer allocates another String. StringBuffer is a true variable string.
Question: shouldn't this be something pretty easy to have a compiler optimize? Essentially, my question is, "does javac do any optimizations? does gjc?" and "does jikes optimize this?" Anyone know?
Question: shouldn't this be something pretty easy to have a compiler optimize? Essentially, my question is, "does javac do any optimizations? does gjc?" and "does jikes optimize this?" Anyone know?
