Friends tell me what is the difference between in declaring,
String a =" abc "; and String b= new String("xyz");
when we apply "==" and "equals()" on first string , it depicts they are equal. but it is not in the case of second string. why it is so ? plz answer in memory point of view ?





Reply With Quote