Computer Applications

Describe the purpose and write the syntax of toUpperCase() function.

Java String Handling

23 Likes

Answer

It converts a string into upper case characters. If any character is already in uppercase or is a special character then it will remain same.

Syntax:


String <variable-name> = <string-variable>.toUpperCase();

Answered By

13 Likes


Related Questions