when i am comparing a string that is concatinated and comparing the objects of the concatinated string and normal string its showing false. I thought that the Strig literal "kalyansreekar" is already present in String constant pool. can soomeone explain me why this is happening and also the implementation code of string concatination. Thank you.
String a="kalyan";
String b=a+"sreekar";
String c="kalyansreekar";
System.out.println(b==c);
"I expect the result to be true, but the actual output is false"