Multiple Choice
What will be displayed after the following code is executed?
String str = "abc456";
For (int i = 0; i < str.length() ; i++)
{
Char chr = str.CharAt(i) ;
If (!Character.isLetter(chr) )
System.out.print(Character.toUpperCase(chr) ) ;
}
A) ABC
B) ABC456
C) 456
D) abc456
Correct Answer:

Verified
Correct Answer:
Verified
Related Questions
Q36: Trying to extract more tokens than exist
Q37: The String class's valueOf method accepts a
Q38: What are the tokens in the following
Q39: Which of the following statements will display
Q40: The process of converting a wrapper class
Q42: Which of the following statements converts an
Q43: What will be displayed after the following
Q44: You can concatenate String objects by using
Q45: The term _ is commonly used to
Q46: Which of the following statements converts a