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:
Verified
Q24: Consider the condition (x == y). How
Q25: Which of the following packages includes classes
Q26: Which of the following will yield a
Q27: The String class's compareTo method
A) compares two
Q28: In the StringMutation program shown in Listing
Q30: What does the following code fragment do?
Q31: The advantages of the DecimalFormat class compared
Q32: Write a declaration for a Rectangle named
Q33: Given the following two lines of code,
Q34: In a development environment that fully supports
Unlock this Answer For Free Now!
View this answer and more for free by performing one of the following actions
Scan the QR code to install the App and get 2 free unlocks
Unlock quizzes for free by uploading documents