Solved

What Will Be Printed After the Following Code Is Executed

Question 15

Multiple Choice

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:

verifed

Verified

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

Related Questions