Meesho interview question

String s1 = new String("YOUR_NAME") String s2 = new String("YOUR_NAME") is s1==s2? and WHY?

Interview Answer

Anonymous

20 Jul 2024

answer is false because s1 and s2 comparing the reference of strings