Hi Friendz,
can anybody explain these mentioned line of code. where i m wrong...
1.
String a="one";
String b=a.concat(a); //result is oneone
if (a=="one") //true ok i m satisfied coz same string pool
if (b=="oneone") //false what is that even both b and "oneone" same string pool
2.String c=" one ";
if (c.trim()=="one") //false ??? anybody explain
if (c.trim()==c.trim()) //still false what is that ???
plz give me detail both above questions.
thanx
Aftab