Which of these methods of class String is used to remove leading and trailing whitespaces?
A. startsWith()
B. TrimEnd()
C. Trim()
D. TrimStart()
Answer:A
Which of these methods of class String is used to remove leading and trailing whitespaces?
A. startsWith() B. TrimEnd() C. Trim() D. TrimStart()
Explanation: Removes white space from the string