Home » JAVA Programming » Strings » Question
  1. Which of these method of class String is used to remove leading and trailing whitespaces?
    1. Trim()
    2. doTrim()
    3. startsWith()
    4. trim()
    5. None of these
Correct Option: D

trim()



Your comments will be displayed only after manual approval.