Q. The trim() method in Java used to ___. (A) Remove the given character (B) Remove the values after the given index (C) Remove leading and trailing spaces (D) None of these ποΈ Show Answer π¬ Discuss π Share β‘Menu β Correct Answer: (C) Remove leading and trailing spaces