Est-ce votre entreprise ?
String foo = "abc"; String foo1 = "abc" what does (foo == foo1) evaluate to?
Utilisateur anonyme
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.
Tenez-vous au courant des dernières opportunités et profitez de conseils d’initiés en suivant les entreprises de vos rêves.
Obtenez des recommandations et des mises à jour personnalisées en démarrant vos recherches.