My Code :
class TestStringConcatenation{
 public static void main(String args[]){
   String s1="Sachin ";
   String s2="Tendulkar";
   String s3=s1.concat(s2);
   String s4=s1.concat(s2);
   System.out.println(s4==s3);
  }
}
Output :
false
Is concat function not saving the String object in string constant pool?
 
    