1

Which of these method of class String is used to remove leading and trailing whitespaces?

  • A

    startsWith()

  • B

    trim()

  • C

    Trim()

  • D

    doTrim()