Question #181331

*Based on answer choices A-E, what is the code's output?


5. Given the following code, the output is __.


String str = "Yellowstone National Park";

System.out.print(str.length());

A. 15

B. 25

C. 30

D. 20

E. 35


Expert's answer

The code's output is: B. 25


Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

LATEST TUTORIALS
APPROVED BY CLIENTS