“s1= “”abc””;s2=””abc””;what will be the result ofs1 == s2 ?”
“TRUE!even though == compares “”reference”” not value.explanation:http://stackoverflow.com/questions/513832/how-do-i-compare-strings-in-java”
The goto resource for studying materials
“s1= “”abc””;s2=””abc””;what will be the result ofs1 == s2 ?”
“TRUE!even though == compares “”reference”” not value.explanation:http://stackoverflow.com/questions/513832/how-do-i-compare-strings-in-java”