Questa è la tua azienda?
String foo = "abc"; String foo1 = "abc" what does (foo == foo1) evaluate to?
Anonimo
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.
Non lasciarti sfuggire opportunità e informazioni privilegiate seguendo le aziende dove vorresti lavorare.
Ricevi suggerimenti e aggiornamenti personalizzati avviando le tue ricerche.