Question: You have the following declaration please note the 2 - two - spaces after the last letter and the two spaces in between every letter.

You have the following declaration please note the 2-two-spaces after the last letter and the two spaces in between every letter. There are no spaces at the beginning: Strings ="A B C *;
s=s.trim(r);
System.out.printin(s);
What will be printed?
A. Nothing. No error either
B. ABC with no spaces between the letters but with the two spaces at the end
C. It will not print anything. It will give an error because there are spaces in the middle.
D. A B C with two spaces between letters but no spaces at the end
 You have the following declaration please note the 2-two-spaces after the

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!