Sunday, December 12, 2010

oops!! String ? , Strign Buffer ??, String Builder ???

Enough is Enough!
Too much of anything is not good.

I was confused with this 3 options for my web app. After nearly a couple of hours of analysis i have come to a conclusion. I am not going to dump all the analysis that i did. I prefer to keep my blogs clean. So I am just publishing the end result after discussion with various experts.
Hereafter use String Concatenation {+} for all string adding operations (single line) and use String Buffer for multi-line String Concatenation. 
You need not use String Builder anywhere as internally JVM converts all the String Concatenation using {+} to String Builder.

Prove me wrong if you can ! (any critic out there)
Related Posts Plugin for WordPress, Blogger...