Comparition of String variables in Java
Question
:
String variables a and b are correctly compared in this expression:
a == b
a.equals(b)
a.length() == b.length()
a.toUpperCase() == b.toUpperCase()
Answer
:
B - is the correct answer