Sail E0 Webinar
Question
Which of these method of class String is used to remove leading and trailing whitespaces?
Options:
A .  startsWith()
B .  trim()
C .  Trim()
D .  doTrim()
Answer: Option B


trim()



Was this answer helpful ?
Next Question

Submit Solution

Your email address will not be published. Required fields are marked *

Latest Videos

Latest Test Papers