Solved

Which Statement Is True, Given the Following Code Fragment? String

Question 3

Multiple Choice

Which statement is true, given the following code fragment? String strA = "aBcDeFg";
String strB = strA.toLowerCase() ;
StrB = strB.toUpperCase() ;
String strC = strA.toUpperCase() ;


A) strB.equals(strC) would be true
B) strB.compareTo(strC) would yield 0
C) strA.equals(strC) would be true
D) strA.compareTo(strC) would yield 0
E) None of these

Correct Answer:

verifed

Verified

Related Questions