“s1= “”abc””;s2=””abc””;what will be the result ofs1 == s2 ?”

Average Rating
0 out of 5 stars. 0 votes.

“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”