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
Q7: What will be displayed after the following
Q7: Which of the following statements converts a
Q9: Which of the following import statements is
Q12: What will be the value of position
Q13: You can concatenate String objects by<br>A) using
Q14: In the following statement, what data type
Q15: What will be displayed after the following
Q28: StringBuilder objects are not immutable.
Q36: Trying to extract more tokens than exist
Q46: Which of the following statements converts a