Q. Which of these method of class String is used to remove leading and trailing whitespaces? (A) startsWith() (B) trim() (C) Trim() (D) doTrim() ποΈ Show Answer π¬ Discuss π Share β‘Menu β Correct Answer: (B) trim()