Solved

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

Question 29

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

Unlock this answer now
Get Access to more Verified Answers free of charge

Related Questions

Unlock this Answer For Free Now!

View this answer and more for free by performing one of the following actions

qr-code

Scan the QR code to install the App and get 2 free unlocks

upload documents

Unlock quizzes for free by uploading documents