Is dit jouw bedrijf?
String foo = "abc"; String foo1 = "abc" what does (foo == foo1) evaluate to?
Anoniem
Interviewer was wrong. You were correct.
better say it's based on different situations
I thought it was true because hey would be referencing the same object in memory because of String interning. Told the answer was false.
You are correct. I checked it with a compiler.
This situation is same as new String("abc") == new String("abc") rather than "abc"=="abc". so you was wrong.
Volg de bedrijven van je dromen om als eerste op de hoogte te zijn van vacatures en te profiteren van tips van insiders.
Zoek naar vacatures om gepersonaliseerde vacature-aanbevelingen en -updates te krijgen.