Re[2]: Is there really a performance benefit using the intern and == operator ?
Author: pete hawdon (http://www.jguru.com/guru/viewbio.jsp?EID=1329721), Feb 28, 2007According to the javadoc for String -When the intern method is invoked, if the pool already contains a string equal to this String object as determined by the {@link #equals(Object)} method, then the string from the pool is returned. Otherwise, this String object is added to the pool and a reference to this String object is returned.