Friday, 23 August 2013

java call string "" intern method a good idea at app start up?

java call string "" intern method a good idea at app start up?

good idea to call :
"".intern();
in a enterprise app at start up (once, like in the first servlet
initialization?) so all subsequent Strings that have empty string value
are the same reference?

No comments:

Post a Comment