ICSE Class 10 Computer Applications
Question 38 of 46
String Handling — Question 2
Back to all questions 2
Question Question 2
While using the toLowerCase() method on a string containing special characters, ............... .
- the special characters remain unaffected.
- the special characters are converted to spaces.
- the special characters are converted to null character.
- the special characters are removed from the string.
the special characters remain unaffected
Reason — The toLowerCase() method converts each character in a string to lowercase. However, if the string contains any special character, it remains unchanged.