A Admin • 828.03K Points Coach Q. What is the purpose of the trim() method of a String object in Java? (A) To remove all spaces from the string (B) To concatenate two strings (C) To extract a substring from the string (D) To remove leading and trailing whitespace Correct Answer - Option(D) Views: 11 Filed under category Java Hashtags: Share Manage Tags
Discusssion
Login to discuss.