What will be printed after the following code is executed?
String str = "abc456";
Int m = 0;
While ( m < 6 )
{
If (!Character.isLetter(str.charAt(m) ) )
System.out.print(
Character.toUpperCase(str.charAt(m) ) ) ;
M++;
}
A) 456
B) ABC456
C) ABC
D) abc456
Correct Answer:
Verified
Q5: If a non-letter is passed to the
Q7: The wrapper classes in Java are immutable,
Q32: To convert the string, str = "285.74"
Q33: Use the following import statement when using
Q34: What does the following statement do?
Double number
Q35: Which of the following statements will print
Q36: To convert the int variable, number to
Q38: What will be the value of matches
Q39: What will be the value of loc
Q40: What is the value of str after
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