What will the following statement return?
" hello java developer ".trim ();
Select 1 option
hellojavadeveloper
Correct Option is : C
A. is a wrong answer.
" hello java developer " is a valid String and trim () is a valid method in String class.
B. is a wrong answer.
trim () does not remove spaces in within the string but the spaces at the beginning and at the end.