V Vinay • 28.75K Points Instructor II Bookmark Embed Report View In MB-Short 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: 48 Filed under category JAVA Share
Discusssion
Login to discuss.