All quizzes
JavaCoreMultiple choice

Two String variables hold equal text but were built differently (e.g. one via new String(...)). Which comparison reliably reports them as equal?

String a = "hi";
String b = new String("hi");