+ 1

Explain me

class MyClass { public static void main(String[ ] args) { String a="a"; String b="b"; String c=a+b; String d="ab"; if(c==d){ System.out.println(1); } else System.out.println(0); } }

22nd Oct 2018, 7:02 AM
Rohit Ahuja
Rohit Ahuja - avatar
3 Respuestas
+ 2
thnx
22nd Oct 2018, 7:30 AM
Rohit Ahuja
Rohit Ahuja - avatar
+ 1
then why the answer is 0 I'm asking this
22nd Oct 2018, 7:14 AM
Rohit Ahuja
Rohit Ahuja - avatar