InterviewSolution
Saved Bookmarks
| 1. |
String trim() function is used to _______________________(a) Remove all the white spaces from the string(b) Remove white space from start of string(c) Remove white space at end of string(d) Remove white space from both the ends of string |
|
Answer» The correct option is (d) Remove white space from both the ends of string For explanation: The function is used to remove any white space from both the ends of a given string. The white space include space, tab, next line etc. It will be removed both from the starting of string and from the end of string. |
|