http://myjvm.wordpress.com
String s = "abc"; String s2 = new String("abc"); if(s==s2) // this is true
Books: Java Threads, 3rd Edition, Jini in a Nutshell, and Java Gems (contributor)
String s = "abc"; String s2 = new StringBuffer("abc").toString(); if(s==s2) // this condition will be false