Home / CSE MCQs / JAVA MCQs :: Discussion

Discussion :: JAVA MCQs

  1. Which of these method of class String is used to remove leading and trailing whitespaces?
  2. A.
    startsWith()
    B.
    trim()
    C.
    Trim()
    D.
    doTrim()

    View Answer

    Workspace

    Answer : Option B

    Explanation :

    trim()


Be The First To Comment