P is for Practical | |
PerlMonks |
Re: Re: Re: Re: Memory Use/Garbage Collection: Java vs Perlby hossman (Prior) |
on Sep 04, 2002 at 00:37 UTC ( [id://194950]=note: print w/replies, xml ) | Need Help?? |
this whole thread is pretty OT, so i won't let that stop me from pointing out...
You aren't garunteed to get the behavior you are seeing from every implimentation of Java -- the JLS only requires that string concatination must be implimented using a StringBuffer, not that multiple string concatenations must be optimized into a single StringBuffer. ie...
You might want to check out JDC TechTip 2002-03-05 particularly it's discussion of "a statement found in the Java Language Specification section 15.18.1.2"
In Section
Seekers of Perl Wisdom
|
|