InterviewSolution
Saved Bookmarks
| 1. |
String class provides function toUpper() to _____________________(a) Convert first character to uppercase(b) Convert last character to uppercase(c) Convert the whole string characters to uppercase(d) Convert uppercase to lower and lower to uppercases |
|
Answer» Correct option is (c) Convert the whole string characters to uppercase To explain: The function is used to convert each character of the string. If the character is already uppercase then it remains the same. But if some character is in lowercase then it will be converted to uppercase. |
|