<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/'><id>tag:blogger.com,1999:blog-10977146.post5454888537018892343..comments</id><updated>2011-12-05T18:55:30.751-05:00</updated><category term='Network'/><category term='3DES'/><category term='Struts'/><category term='System'/><category term='Performance'/><category term='JSP'/><category term='Dynamic Colums'/><category term='Errors'/><category term='JSR'/><category term='Recovery'/><category term='String'/><category term='Server'/><category term='Core Java'/><category term='Tips'/><category term='Encryption'/><category term='Security'/><category term='Search'/><category term='Java'/><category term='RSA'/><category term='JDK7'/><category term='Signing'/><category term='Bytecode'/><category term='Comparision'/><category term='Index'/><category term='Concatenation'/><category term='Database'/><category term='Proxy'/><category term='Java EA'/><category term='Weblogic'/><category term='ClassLoader'/><category term='Dynamic Load'/><category term='FileSystem'/><category term='Web Application'/><category term='Memory'/><category term='NIO.2'/><category term='Password'/><category term='Exceptions'/><category term='OutOfMemory'/><category term='J2EE'/><category term='Funny'/><category term='Geronimo'/><title type='text'>Comments on Venish Joe: Java String Concatenation and Performance</title><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://www.venishjoe.net/feeds/5454888537018892343/comments/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/10977146/5454888537018892343/comments/default'/><link rel='alternate' type='text/html' href='http://www.venishjoe.net/2009/11/java-string-concatenation-and.html'/><link rel='next' type='application/atom+xml' href='http://www.blogger.com/feeds/10977146/5454888537018892343/comments/default?start-index=26&amp;max-results=25'/><author><name>Venish Joe</name><uri>http://www.blogger.com/profile/07972396924856268701</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>31</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-10977146.post-8854888968228066823</id><published>2011-10-11T22:52:31.626-04:00</published><updated>2011-10-11T22:52:31.626-04:00</updated><title type='text'>All the contents you mentioned in post is too good...</title><content type='html'>All the contents you mentioned in post is too good and can be very useful. I will keep it in mind, thanks for sharing the information keep updating, looking forward for more posts. Thanks</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/10977146/5454888537018892343/comments/default/8854888968228066823'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/10977146/5454888537018892343/comments/default/8854888968228066823'/><link rel='alternate' type='text/html' href='http://www.venishjoe.net/2009/11/java-string-concatenation-and.html?showComment=1318387951626#c8854888968228066823' title=''/><author><name>Oil Mill Equipment</name><uri>http://www.oilmillplant.com/Oil-Mill-Equipment.html</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img1.blogblog.com/img/blank.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://www.venishjoe.net/2009/11/java-string-concatenation-and.html' ref='tag:blogger.com,1999:blog-10977146.post-5454888537018892343' source='http://www.blogger.com/feeds/10977146/posts/default/5454888537018892343' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-469199744'/></entry><entry><id>tag:blogger.com,1999:blog-10977146.post-151266441166266546</id><published>2011-10-02T04:54:00.686-04:00</published><updated>2011-10-02T04:54:00.686-04:00</updated><title type='text'>Wow thanks a lot for this one. It helped me a lot ...</title><content type='html'>Wow thanks a lot for this one. It helped me a lot as I was stuck in the middle of one project based on Java. I found your website absolutely accidentally but I am really happy about it. Thanks!</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/10977146/5454888537018892343/comments/default/151266441166266546'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/10977146/5454888537018892343/comments/default/151266441166266546'/><link rel='alternate' type='text/html' href='http://www.venishjoe.net/2009/11/java-string-concatenation-and.html?showComment=1317545640686#c151266441166266546' title=''/><author><name>azoft developers</name><uri>http://www.azoft.com/mobile-application-development.htm</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img1.blogblog.com/img/blank.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://www.venishjoe.net/2009/11/java-string-concatenation-and.html' ref='tag:blogger.com,1999:blog-10977146.post-5454888537018892343' source='http://www.blogger.com/feeds/10977146/posts/default/5454888537018892343' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-1170616645'/></entry><entry><id>tag:blogger.com,1999:blog-10977146.post-7924566954198300223</id><published>2011-09-29T16:49:11.700-04:00</published><updated>2011-09-29T16:49:11.700-04:00</updated><title type='text'>Pretty nice concept, thanks for sharing bro</title><content type='html'>Pretty nice concept, thanks for sharing bro</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/10977146/5454888537018892343/comments/default/7924566954198300223'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/10977146/5454888537018892343/comments/default/7924566954198300223'/><link rel='alternate' type='text/html' href='http://www.venishjoe.net/2009/11/java-string-concatenation-and.html?showComment=1317329351700#c7924566954198300223' title=''/><author><name>gold</name><uri>http://www.gold.com.mt</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img1.blogblog.com/img/blank.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://www.venishjoe.net/2009/11/java-string-concatenation-and.html' ref='tag:blogger.com,1999:blog-10977146.post-5454888537018892343' source='http://www.blogger.com/feeds/10977146/posts/default/5454888537018892343' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-156016451'/></entry><entry><id>tag:blogger.com,1999:blog-10977146.post-2852556308628888444</id><published>2011-09-29T02:08:49.766-04:00</published><updated>2011-09-29T02:08:49.766-04:00</updated><title type='text'>This type interior decoration is usually termed &amp;q...</title><content type='html'>This type interior decoration is usually termed &amp;quot;bling bling&amp;quot;, and then the crystals happen to be coveted due to several adolescent the ladies because of their  reputation throughout Hollywood and flicks.</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/10977146/5454888537018892343/comments/default/2852556308628888444'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/10977146/5454888537018892343/comments/default/2852556308628888444'/><link rel='alternate' type='text/html' href='http://www.venishjoe.net/2009/11/java-string-concatenation-and.html?showComment=1317276529766#c2852556308628888444' title=''/><author><name>swarovski crystal uk</name><uri>http://www.swarovskicrystal.uk.com/</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img1.blogblog.com/img/blank.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://www.venishjoe.net/2009/11/java-string-concatenation-and.html' ref='tag:blogger.com,1999:blog-10977146.post-5454888537018892343' source='http://www.blogger.com/feeds/10977146/posts/default/5454888537018892343' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-625717154'/></entry><entry><id>tag:blogger.com,1999:blog-10977146.post-730881208168862650</id><published>2011-09-25T22:45:09.049-04:00</published><updated>2011-09-25T22:45:09.049-04:00</updated><title type='text'>This is great.Thank&amp;#39;s bro!</title><content type='html'>This is great.Thank&amp;#39;s bro!</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/10977146/5454888537018892343/comments/default/730881208168862650'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/10977146/5454888537018892343/comments/default/730881208168862650'/><link rel='alternate' type='text/html' href='http://www.venishjoe.net/2009/11/java-string-concatenation-and.html?showComment=1317005109049#c730881208168862650' title=''/><author><name>Latest Games</name><uri>http://surehitz.com</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img1.blogblog.com/img/blank.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://www.venishjoe.net/2009/11/java-string-concatenation-and.html' ref='tag:blogger.com,1999:blog-10977146.post-5454888537018892343' source='http://www.blogger.com/feeds/10977146/posts/default/5454888537018892343' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-2080184040'/></entry><entry><id>tag:blogger.com,1999:blog-10977146.post-6212974420989895902</id><published>2011-08-28T14:01:56.441-04:00</published><updated>2011-08-28T14:01:56.441-04:00</updated><title type='text'>I am happy to find your distinguished way of writi...</title><content type='html'>I am happy to find your distinguished way of writing the post. Now you make it easy for me to understand and implement the concept.</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/10977146/5454888537018892343/comments/default/6212974420989895902'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/10977146/5454888537018892343/comments/default/6212974420989895902'/><link rel='alternate' type='text/html' href='http://www.venishjoe.net/2009/11/java-string-concatenation-and.html?showComment=1314554516441#c6212974420989895902' title=''/><author><name>cotto vs margarito</name><uri>http://www.cottovsmargarito.info</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img1.blogblog.com/img/blank.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://www.venishjoe.net/2009/11/java-string-concatenation-and.html' ref='tag:blogger.com,1999:blog-10977146.post-5454888537018892343' source='http://www.blogger.com/feeds/10977146/posts/default/5454888537018892343' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-1048028054'/></entry><entry><id>tag:blogger.com,1999:blog-10977146.post-9030452685506238216</id><published>2011-08-28T14:01:01.067-04:00</published><updated>2011-08-28T14:01:01.067-04:00</updated><title type='text'>The post is written in very a good manner and it e...</title><content type='html'>The post is written in very a good manner and it entails many useful information for me.</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/10977146/5454888537018892343/comments/default/9030452685506238216'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/10977146/5454888537018892343/comments/default/9030452685506238216'/><link rel='alternate' type='text/html' href='http://www.venishjoe.net/2009/11/java-string-concatenation-and.html?showComment=1314554461067#c9030452685506238216' title=''/><author><name>donaire vs narvaez</name><uri>http://www.donairevsnarvaez.info</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img1.blogblog.com/img/blank.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://www.venishjoe.net/2009/11/java-string-concatenation-and.html' ref='tag:blogger.com,1999:blog-10977146.post-5454888537018892343' source='http://www.blogger.com/feeds/10977146/posts/default/5454888537018892343' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-1048028054'/></entry><entry><id>tag:blogger.com,1999:blog-10977146.post-361425302474406774</id><published>2011-08-25T07:37:15.750-04:00</published><updated>2011-08-25T07:37:15.750-04:00</updated><title type='text'>I never read whole articles but the way you wrote ...</title><content type='html'>I never read whole articles but the way you wrote this information is simply amazing and this kept my interest in reading and I enjoyed it.</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/10977146/5454888537018892343/comments/default/361425302474406774'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/10977146/5454888537018892343/comments/default/361425302474406774'/><link rel='alternate' type='text/html' href='http://www.venishjoe.net/2009/11/java-string-concatenation-and.html?showComment=1314272235750#c361425302474406774' title=''/><author><name>pacquiao vs marquez</name><uri>http://www.pacquiaovsmarqueziii.info</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img1.blogblog.com/img/blank.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://www.venishjoe.net/2009/11/java-string-concatenation-and.html' ref='tag:blogger.com,1999:blog-10977146.post-5454888537018892343' source='http://www.blogger.com/feeds/10977146/posts/default/5454888537018892343' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-1647953919'/></entry><entry><id>tag:blogger.com,1999:blog-10977146.post-3931721559736500068</id><published>2011-08-25T07:30:12.064-04:00</published><updated>2011-08-25T07:30:12.064-04:00</updated><title type='text'>There are certainly a lot of details like that to ...</title><content type='html'>There are certainly a lot of details like that to take into consideration. That’s a great point to bring up.</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/10977146/5454888537018892343/comments/default/3931721559736500068'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/10977146/5454888537018892343/comments/default/3931721559736500068'/><link rel='alternate' type='text/html' href='http://www.venishjoe.net/2009/11/java-string-concatenation-and.html?showComment=1314271812064#c3931721559736500068' title=''/><author><name>mayweather vs ortiz</name><uri>http://www.mayweathervsortizlive.net/mayweather-vs-ortiz-live-streaming-watch-online.html</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img1.blogblog.com/img/blank.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://www.venishjoe.net/2009/11/java-string-concatenation-and.html' ref='tag:blogger.com,1999:blog-10977146.post-5454888537018892343' source='http://www.blogger.com/feeds/10977146/posts/default/5454888537018892343' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-340726845'/></entry><entry><id>tag:blogger.com,1999:blog-10977146.post-7352735983736975319</id><published>2011-08-11T11:11:17.642-04:00</published><updated>2011-08-11T11:11:17.642-04:00</updated><title type='text'>Nice script man , it helped me a lot with my probl...</title><content type='html'>Nice script man , it helped me a lot with my problem recently .</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/10977146/5454888537018892343/comments/default/7352735983736975319'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/10977146/5454888537018892343/comments/default/7352735983736975319'/><link rel='alternate' type='text/html' href='http://www.venishjoe.net/2009/11/java-string-concatenation-and.html?showComment=1313075477642#c7352735983736975319' title=''/><author><name>casino</name><uri>http://qpcasino.com/</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img1.blogblog.com/img/blank.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://www.venishjoe.net/2009/11/java-string-concatenation-and.html' ref='tag:blogger.com,1999:blog-10977146.post-5454888537018892343' source='http://www.blogger.com/feeds/10977146/posts/default/5454888537018892343' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-484901149'/></entry><entry><id>tag:blogger.com,1999:blog-10977146.post-6805139892945162589</id><published>2011-06-06T03:56:46.440-04:00</published><updated>2011-06-06T03:56:46.440-04:00</updated><title type='text'>Nice concept about java string. i will definitely ...</title><content type='html'>Nice concept about java string. i will definitely share to my friends.</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/10977146/5454888537018892343/comments/default/6805139892945162589'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/10977146/5454888537018892343/comments/default/6805139892945162589'/><link rel='alternate' type='text/html' href='http://www.venishjoe.net/2009/11/java-string-concatenation-and.html?showComment=1307347006440#c6805139892945162589' title=''/><author><name>Linear programming</name><uri>http://www.ateji.com</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img1.blogblog.com/img/blank.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://www.venishjoe.net/2009/11/java-string-concatenation-and.html' ref='tag:blogger.com,1999:blog-10977146.post-5454888537018892343' source='http://www.blogger.com/feeds/10977146/posts/default/5454888537018892343' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-1092906024'/></entry><entry><id>tag:blogger.com,1999:blog-10977146.post-9070411960761914246</id><published>2011-05-17T07:15:53.557-04:00</published><updated>2011-05-17T07:15:53.557-04:00</updated><title type='text'>Thanks for this post. I wasn&amp;#39;t aware the diffe...</title><content type='html'>Thanks for this post. I wasn&amp;#39;t aware the difference between (+), concat() and using StringBuffer/StringBuilder was so big. I have seen a dramatic improvement in performance in my app (outputing HTML). I thought it was I/O related, but it had everything to do with naively concatening Strings with (+) in loops.</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/10977146/5454888537018892343/comments/default/9070411960761914246'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/10977146/5454888537018892343/comments/default/9070411960761914246'/><link rel='alternate' type='text/html' href='http://www.venishjoe.net/2009/11/java-string-concatenation-and.html?showComment=1305630953557#c9070411960761914246' title=''/><author><name>Anonymous</name><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img1.blogblog.com/img/blank.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://www.venishjoe.net/2009/11/java-string-concatenation-and.html' ref='tag:blogger.com,1999:blog-10977146.post-5454888537018892343' source='http://www.blogger.com/feeds/10977146/posts/default/5454888537018892343' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-1656203506'/></entry><entry><id>tag:blogger.com,1999:blog-10977146.post-5448925929660857960</id><published>2011-03-14T08:52:09.302-04:00</published><updated>2011-03-14T08:52:09.302-04:00</updated><title type='text'>This is a very helpful post. This would surely be ...</title><content type='html'>This is a very helpful post. This would surely be of great help to those looking for this code.</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/10977146/5454888537018892343/comments/default/5448925929660857960'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/10977146/5454888537018892343/comments/default/5448925929660857960'/><link rel='alternate' type='text/html' href='http://www.venishjoe.net/2009/11/java-string-concatenation-and.html?showComment=1300107129302#c5448925929660857960' title=''/><author><name>Essay Topics</name><uri>http://www.essaybank.com/</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img1.blogblog.com/img/blank.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://www.venishjoe.net/2009/11/java-string-concatenation-and.html' ref='tag:blogger.com,1999:blog-10977146.post-5454888537018892343' source='http://www.blogger.com/feeds/10977146/posts/default/5454888537018892343' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-1138620713'/></entry><entry><id>tag:blogger.com,1999:blog-10977146.post-2908256961170595425</id><published>2009-12-18T11:13:43.899-05:00</published><updated>2009-12-18T11:13:43.899-05:00</updated><title type='text'>I don&amp;#39;t think this is a fair analysis of the +...</title><content type='html'>I don&amp;#39;t think this is a fair analysis of the + operator.  Performing this inside a loop will obviously result in allocating a new String on every iteration.  As some of the previous commentors indicated, this is not seen often in practice.  What I do most often is generate log reports using a variety of known data as follows:&lt;br /&gt;&lt;b&gt;&lt;br /&gt;String rep = &amp;quot;Name: &amp;quot; + A.getName() + &lt;br /&gt;           + &amp;quot;\nDescription: &amp;quot; + A.getDesc() +&lt;br /&gt;           + &amp;quot;\nSize: &amp;quot; + A.getSize() +&lt;br /&gt;           + &amp;quot;\nStatus: &amp;quot; + A.generateStatus();&lt;br /&gt;&lt;/b&gt;&lt;br /&gt;Thus, I basically have the case of;&lt;br /&gt;&lt;b&gt;&lt;br /&gt;String rep = A + B + C + D + E + F + G + H;&lt;br /&gt;&lt;/b&gt;&lt;br /&gt;Now, there are a number of ways that the compiler can behave.  The way I&amp;#39;ve always thought it behaved was as follows:&lt;br /&gt;Allocate String for A+B &lt;br /&gt;Allocate String for (A+B)+C&lt;br /&gt;Allocate String for (A+B+C)+D&lt;br /&gt;...&lt;br /&gt;Allocate String for (A+B+C+D+E+F+G)+H&lt;br /&gt;&lt;br /&gt;Thus, there are 7 Strings allocated for the purposes of concatenating 8 strings.&lt;br /&gt;&lt;br /&gt;There are a few obvious optimizations that the compiler could make:&lt;br /&gt;&lt;br /&gt;Automatically concatenate adjacent constant Strings.  This would be known at compile time.  For example, &lt;br /&gt;&lt;b&gt;&lt;br /&gt;String res = &amp;quot;A&amp;quot; + &amp;quot;B&amp;quot; + C.toString(); &lt;br /&gt;&lt;/b&gt;&lt;br /&gt;could be optimized by the compiler to&lt;br /&gt;&lt;b&gt;&lt;br /&gt;String res = &amp;quot;AB&amp;quot; + C.toString();&lt;br /&gt;&lt;/b&gt;&lt;br /&gt;I would be surprised if the compiler doesn&amp;#39;t already do this.&lt;br /&gt;&lt;br /&gt;Another optimization it could do is get the total length of all the Strings in the concat list and allocate a &lt;b&gt;&lt;i&gt;single&lt;/i&gt;&lt;/b&gt; String to hold them all.  I don&amp;#39;t know if the compiler can do this, but if it did, then I would say that for most uses, the + operator is optimal.</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/10977146/5454888537018892343/comments/default/2908256961170595425'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/10977146/5454888537018892343/comments/default/2908256961170595425'/><link rel='alternate' type='text/html' href='http://www.venishjoe.net/2009/11/java-string-concatenation-and.html?showComment=1261152823899#c2908256961170595425' title=''/><author><name>Anonymous</name><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img1.blogblog.com/img/blank.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://www.venishjoe.net/2009/11/java-string-concatenation-and.html' ref='tag:blogger.com,1999:blog-10977146.post-5454888537018892343' source='http://www.blogger.com/feeds/10977146/posts/default/5454888537018892343' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-1853429638'/></entry><entry><id>tag:blogger.com,1999:blog-10977146.post-8395694913860628106</id><published>2009-11-12T01:44:12.882-05:00</published><updated>2009-11-12T01:44:12.882-05:00</updated><title type='text'>You should always specify either -client or -serve...</title><content type='html'>You should always specify either -client or -server as parameter or at least check with -version what will be the default for your setup. Otherwise you&amp;#39;ll never know what compiler optimizations will be used. Basically all Java benchmarks are useless without knowing what -client/-server flag was used. With -server depending on the test one can basically see some code to be &amp;quot;removed&amp;quot; or it can make the difference between and endless loop and ending loop (try threading with volatile)...</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/10977146/5454888537018892343/comments/default/8395694913860628106'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/10977146/5454888537018892343/comments/default/8395694913860628106'/><link rel='alternate' type='text/html' href='http://www.venishjoe.net/2009/11/java-string-concatenation-and.html?showComment=1258008252882#c8395694913860628106' title=''/><author><name>Anonymous</name><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img1.blogblog.com/img/blank.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://www.venishjoe.net/2009/11/java-string-concatenation-and.html' ref='tag:blogger.com,1999:blog-10977146.post-5454888537018892343' source='http://www.blogger.com/feeds/10977146/posts/default/5454888537018892343' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-130481247'/></entry><entry><id>tag:blogger.com,1999:blog-10977146.post-5815983370526658133</id><published>2009-11-11T18:53:36.884-05:00</published><updated>2009-11-11T18:53:36.884-05:00</updated><title type='text'>For the sake of just looking good.  Compare the te...</title><content type='html'>For the sake of just looking good.  Compare the test above with just a print(&amp;quot;*&amp;quot;); and at the end print(&amp;quot;\n&amp;quot;);  and see if it&amp;#39;s just plain faster.  I mean the code above looks cool, however, is it faster.&lt;br /&gt;I mean the object above can do a lot more, but, I just want a fast printout. And any memory leaks?</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/10977146/5454888537018892343/comments/default/5815983370526658133'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/10977146/5454888537018892343/comments/default/5815983370526658133'/><link rel='alternate' type='text/html' href='http://www.venishjoe.net/2009/11/java-string-concatenation-and.html?showComment=1257983616884#c5815983370526658133' title=''/><author><name>Anonymous</name><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img1.blogblog.com/img/blank.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://www.venishjoe.net/2009/11/java-string-concatenation-and.html' ref='tag:blogger.com,1999:blog-10977146.post-5454888537018892343' source='http://www.blogger.com/feeds/10977146/posts/default/5454888537018892343' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-334435440'/></entry><entry><id>tag:blogger.com,1999:blog-10977146.post-1927566511619957508</id><published>2009-11-11T08:02:28.409-05:00</published><updated>2009-11-11T08:02:28.409-05:00</updated><title type='text'>Rob, we revamped the Jmol code a couple of years a...</title><content type='html'>Rob, we revamped the Jmol code a couple of years ago and saw significant gains in processing speed, though we didn&amp;#39;t benchmark it. This is obviously a worst-case scenario, but it&amp;#39;s real. The worst case appears to be:&lt;br /&gt;&lt;br /&gt;[loop]&lt;br /&gt; x+= xxxx;&lt;br /&gt;x+= xxxx;&lt;br /&gt;x+= xxxx;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;[/loop]</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/10977146/5454888537018892343/comments/default/1927566511619957508'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/10977146/5454888537018892343/comments/default/1927566511619957508'/><link rel='alternate' type='text/html' href='http://www.venishjoe.net/2009/11/java-string-concatenation-and.html?showComment=1257944548409#c1927566511619957508' title=''/><author><name>Bob Hanson</name><uri>http://chemapps.stolaf.edu/jmol</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img1.blogblog.com/img/blank.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://www.venishjoe.net/2009/11/java-string-concatenation-and.html' ref='tag:blogger.com,1999:blog-10977146.post-5454888537018892343' source='http://www.blogger.com/feeds/10977146/posts/default/5454888537018892343' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-1924400347'/></entry><entry><id>tag:blogger.com,1999:blog-10977146.post-5612127805807358302</id><published>2009-11-11T07:42:54.862-05:00</published><updated>2009-11-11T07:42:54.862-05:00</updated><title type='text'>A prelude to the upcoming blog entry - string conc...</title><content type='html'>A prelude to the upcoming blog entry - string concatenation meters.&lt;br /&gt;&lt;br /&gt;http://blog.jinspired.com/?p=832</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/10977146/5454888537018892343/comments/default/5612127805807358302'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/10977146/5454888537018892343/comments/default/5612127805807358302'/><link rel='alternate' type='text/html' href='http://www.venishjoe.net/2009/11/java-string-concatenation-and.html?showComment=1257943374862#c5612127805807358302' title=''/><author><name>williamlouth</name><uri>http://williamlouth.wordpress.com/</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img1.blogblog.com/img/openid16-rounded.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://www.venishjoe.net/2009/11/java-string-concatenation-and.html' ref='tag:blogger.com,1999:blog-10977146.post-5454888537018892343' source='http://www.blogger.com/feeds/10977146/posts/default/5454888537018892343' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-1891850193'/></entry><entry><id>tag:blogger.com,1999:blog-10977146.post-4701235702788900073</id><published>2009-11-10T08:55:46.102-05:00</published><updated>2009-11-10T08:55:46.102-05:00</updated><title type='text'>At the end of the day this whole benchmark is poin...</title><content type='html'>At the end of the day this whole benchmark is pointless as no one code in an real-world executes like any of the scenarios tested above. The most common case is someone creating a string (or buffer or builder) and performing a few appends or inserts. This is what should be tested if one really has too much &amp;quot;waste&amp;quot; time with oneself. But then you would be much better off benchmarking the creation and copying of char[] arrays which is what is effectively happening underneath the thin service veneer of these classes.&lt;br /&gt;&lt;br /&gt;What is much more useful to note in an application is how many times one allocs/inserts/appends/resizes/tostrings builders and buffers in the course of an execution which is the point of my upcoming blog entry.</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/10977146/5454888537018892343/comments/default/4701235702788900073'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/10977146/5454888537018892343/comments/default/4701235702788900073'/><link rel='alternate' type='text/html' href='http://www.venishjoe.net/2009/11/java-string-concatenation-and.html?showComment=1257861346102#c4701235702788900073' title=''/><author><name>williamlouth</name><uri>http://williamlouth.wordpress.com/</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img1.blogblog.com/img/openid16-rounded.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://www.venishjoe.net/2009/11/java-string-concatenation-and.html' ref='tag:blogger.com,1999:blog-10977146.post-5454888537018892343' source='http://www.blogger.com/feeds/10977146/posts/default/5454888537018892343' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-1891850193'/></entry><entry><id>tag:blogger.com,1999:blog-10977146.post-4226441918248468841</id><published>2009-11-10T08:37:35.435-05:00</published><updated>2009-11-10T08:37:35.435-05:00</updated><title type='text'>Switching positions can make a difference, because...</title><content type='html'>Switching positions can make a difference, because the JIT-compiler needs some warmup. When JIT kicks in with runtime optimizations, the numbers change dramatically.</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/10977146/5454888537018892343/comments/default/4226441918248468841'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/10977146/5454888537018892343/comments/default/4226441918248468841'/><link rel='alternate' type='text/html' href='http://www.venishjoe.net/2009/11/java-string-concatenation-and.html?showComment=1257860255435#c4226441918248468841' title=''/><author><name>Anonymous</name><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img1.blogblog.com/img/blank.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://www.venishjoe.net/2009/11/java-string-concatenation-and.html' ref='tag:blogger.com,1999:blog-10977146.post-5454888537018892343' source='http://www.blogger.com/feeds/10977146/posts/default/5454888537018892343' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-1614005457'/></entry><entry><id>tag:blogger.com,1999:blog-10977146.post-3161154094765961410</id><published>2009-11-10T03:17:33.605-05:00</published><updated>2009-11-10T03:17:33.605-05:00</updated><title type='text'>&amp;quot;What IS an example of commonly written code ...</title><content type='html'>&amp;quot;What IS an example of commonly written code that involves concatenating large numbers of Strings in a loop? I can&amp;#39;t think of any time that situation turned up in my 12 years of Java development.&amp;quot;&lt;br /&gt;&lt;br /&gt;I am actually writing a blog post today about this very issue and you be very surprised how common it is once you filter out a lot of noise in the execution of a web request. Does one need to time it? Absolutely NOT. In fact the customer case that serves as the basis for this blog entry used StringBuilder for the most part. The problem with String(Buffers/Builders) is that they are used wrongly as generic output queues. I will post the link later when the article is finished.&lt;br /&gt;&lt;br /&gt;Is there a point to the above comparisons. NO.</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/10977146/5454888537018892343/comments/default/3161154094765961410'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/10977146/5454888537018892343/comments/default/3161154094765961410'/><link rel='alternate' type='text/html' href='http://www.venishjoe.net/2009/11/java-string-concatenation-and.html?showComment=1257841053605#c3161154094765961410' title=''/><author><name>williamlouth</name><uri>http://williamlouth.wordpress.com/</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img1.blogblog.com/img/openid16-rounded.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://www.venishjoe.net/2009/11/java-string-concatenation-and.html' ref='tag:blogger.com,1999:blog-10977146.post-5454888537018892343' source='http://www.blogger.com/feeds/10977146/posts/default/5454888537018892343' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-1891850193'/></entry><entry><id>tag:blogger.com,1999:blog-10977146.post-6759521354659099584</id><published>2009-11-09T19:12:29.461-05:00</published><updated>2009-11-09T19:12:29.461-05:00</updated><title type='text'>There have been so very many articles and blog pos...</title><content type='html'>There have been so very many articles and blog posts about the &amp;quot;pitfalls&amp;quot; of string concatenation in Java, and I&amp;#39;m still waiting for the one that starts with &amp;quot;there was a performance hotspot in our code that we started researching...&amp;quot;.&lt;br /&gt;&lt;br /&gt;It&amp;#39;s all entirely academic unless it solves an *actual* performance problem in real-live code, and it results in a lot of bad code by new developers who waste their time rewriting working code to &amp;quot;clean up all that unoptimal string concatenation&amp;quot;... accomplishing nothing but making code less readable and introducing bugs.&lt;br /&gt;&lt;br /&gt;What IS an example of commonly written code that involves concatenating large numbers of Strings in a loop?  I can&amp;#39;t think of any time that situation turned up in my 12 years of Java development.&lt;br /&gt;&lt;br /&gt;What I *have* seen is lots of ugly code where people are jumping through hoops to avoid using &amp;quot;+&amp;quot; when, for example, generating one line from 3 fields &amp;quot;city, state zip&amp;quot; -- an utterly useless optimization -- so that after a while I kinda get pissed off seeing this optimization pop up again in another post/article/etc..  Any discussion of an optimization needs to cover when to use it (with real-life examples...), because there are always times they should not be used, often for reasons of readability/maintainability.</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/10977146/5454888537018892343/comments/default/6759521354659099584'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/10977146/5454888537018892343/comments/default/6759521354659099584'/><link rel='alternate' type='text/html' href='http://www.venishjoe.net/2009/11/java-string-concatenation-and.html?showComment=1257811949461#c6759521354659099584' title=''/><author><name>Rob</name><uri>http://www.blogger.com/profile/01393030921004610819</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='30' height='32' src='http://4.bp.blogspot.com/_Lrt62ABKm7E/ShrRhNvngWI/AAAAAAAAAAM/4NpcYsGsA7U/S220/rob.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://www.venishjoe.net/2009/11/java-string-concatenation-and.html' ref='tag:blogger.com,1999:blog-10977146.post-5454888537018892343' source='http://www.blogger.com/feeds/10977146/posts/default/5454888537018892343' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-1963775658'/></entry><entry><id>tag:blogger.com,1999:blog-10977146.post-249924847576620094</id><published>2009-11-09T12:55:23.855-05:00</published><updated>2009-11-09T12:55:23.855-05:00</updated><title type='text'>@Anonymous

I ran the tests more than 5 times with...</title><content type='html'>@Anonymous&lt;br /&gt;&lt;br /&gt;I ran the tests more than 5 times with default run-time parameters and the difference in the standard deviation was almost negligible. I am not sure if running in a EA JRE 7 made any difference, probably I will try this in JRE6 in a 32bit machine and see if it makes any difference.&lt;br /&gt;&lt;br /&gt;@Anonymous&lt;br /&gt;&lt;br /&gt;Switching the positions didn&amp;#39;t make any difference, I don&amp;#39;t see why that would make any difference. Java compiler will optimize the (+) statements as you mentioned as long as they are in the same statement, but in a loop there wouldn&amp;#39;t be any big optimization by compiler.</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/10977146/5454888537018892343/comments/default/249924847576620094'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/10977146/5454888537018892343/comments/default/249924847576620094'/><link rel='alternate' type='text/html' href='http://www.venishjoe.net/2009/11/java-string-concatenation-and.html?showComment=1257789323855#c249924847576620094' title=''/><author><name>Venish Joe</name><uri>http://www.blogger.com/profile/07972396924856268701</uri><email>noreply@blogger.com</email><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='OpenSocialUserId' value='00694475006929468017'/><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://www.venishjoe.net/2009/11/java-string-concatenation-and.html' ref='tag:blogger.com,1999:blog-10977146.post-5454888537018892343' source='http://www.blogger.com/feeds/10977146/posts/default/5454888537018892343' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-102416987'/></entry><entry><id>tag:blogger.com,1999:blog-10977146.post-3736220502319103240</id><published>2009-11-09T11:54:38.775-05:00</published><updated>2009-11-09T11:54:38.775-05:00</updated><title type='text'>Please change the positions of the + and concat te...</title><content type='html'>Please change the positions of the + and concat tests. What do you get?&lt;br /&gt;&lt;br /&gt;Using concat instead of + isn&amp;#39;t a good idea, as the java compiler will optimize the + statements where possible.&lt;br /&gt;&lt;br /&gt;String myVar = &amp;quot;abcdef&amp;quot;;&lt;br /&gt;String myVar = &amp;quot;a&amp;quot;+&amp;quot;b&amp;quot;+&amp;quot;c&amp;quot;+&amp;quot;d&amp;quot;+&amp;quot;e&amp;quot;+&amp;quot;f&amp;quot;;&lt;br /&gt;Those statement will be exactly the same at bytecode level.</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/10977146/5454888537018892343/comments/default/3736220502319103240'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/10977146/5454888537018892343/comments/default/3736220502319103240'/><link rel='alternate' type='text/html' href='http://www.venishjoe.net/2009/11/java-string-concatenation-and.html?showComment=1257785678775#c3736220502319103240' title=''/><author><name>Anonymous</name><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img1.blogblog.com/img/blank.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://www.venishjoe.net/2009/11/java-string-concatenation-and.html' ref='tag:blogger.com,1999:blog-10977146.post-5454888537018892343' source='http://www.blogger.com/feeds/10977146/posts/default/5454888537018892343' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-2089376203'/></entry><entry><id>tag:blogger.com,1999:blog-10977146.post-3832857925689373817</id><published>2009-11-09T07:57:42.762-05:00</published><updated>2009-11-09T07:57:42.762-05:00</updated><title type='text'>You say that the results are conclusive and expect...</title><content type='html'>You say that the results are conclusive and expected. I would say that the difference between &amp;quot;+&amp;quot; and StringBuilder is unexpected and consequently the results are far from conclusive. The std dev. on all runs are way too high which suggest that there are interferences in your benchmarks. Also there is no warmup in the code.&lt;br /&gt;&lt;br /&gt;One thing to note, StringBuilder and StringBuffer all delegate their calls to a common abstract super class. The only difference is synchronization. Synchronization behaves very differently on single core and multi-core and is also very sensitive to the version of the VM you are using as well as any command line settings. IOWs, it is very easy to make StringBuffer worse than any of the numbers you&amp;#39;ve published here.</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/10977146/5454888537018892343/comments/default/3832857925689373817'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/10977146/5454888537018892343/comments/default/3832857925689373817'/><link rel='alternate' type='text/html' href='http://www.venishjoe.net/2009/11/java-string-concatenation-and.html?showComment=1257771462762#c3832857925689373817' title=''/><author><name>Anonymous</name><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img1.blogblog.com/img/blank.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://www.venishjoe.net/2009/11/java-string-concatenation-and.html' ref='tag:blogger.com,1999:blog-10977146.post-5454888537018892343' source='http://www.blogger.com/feeds/10977146/posts/default/5454888537018892343' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-20030943'/></entry></feed>
