When did Strings start caching their hash codes?
Location: http://www.jguru.com/faq/view.jsp?EID=289946 Created: Dec 30, 2000 Modified: 2000-12-30 19:27:02.099 Author: John Zukowski (http://www.jguru.com/guru/viewbio.jsp?EID=7) Starting with the 1.3 release of Java, the java.lang.String class will only calculate the hashcode once, when its first needed. Future calls to hashCode() will return the previously calculated value.