In java for below code:-
s1="ab"
s2="a"
s1=="a"+"b"
s1==s2+"b"
The first comparison returs true and second comparison returns flase. Why so?
Note:- both results in "ab" string only
In java for below code:-
s1="ab"
s2="a"
s1=="a"+"b"
s1==s2+"b"
The first comparison returs true and second comparison returns flase. Why so?
Note:- both results in "ab" string only