Advertisements
Advertisements
प्रश्न
Which of the following functions is used to remove leading and trailing white spaces from the string?
विकल्प
trim()
trail()
truncate()
slice()
MCQ
उत्तर
trim()
Explanation:
Many computer languages, including Java, employ the trim() function to eliminate leading and trailing white spaces from strings. It just removes the first and last spaces from the string.
shaalaa.com
क्या इस प्रश्न या उत्तर में कोई त्रुटि है?