Asked by Mohammed Almesbahi on Sep 26, 2024

The method trim of the String class trims off:

A) Leading white space
B) Trailing white space
C) Leading and trailing white space
D) Blanks

String Class

A class in many programming languages that represents sequences of characters and provides methods for string manipulation.

White Space

Blank areas in text or code that are not visible characters, used to separate symbols in programming languages for readability.

Trim

A method in many programming languages used to remove leading and trailing whitespace from a string.

  • Understand the documentation and convention standards of Java coding.