?

AP® Computer Science A

Free Version

Upgrade subject to access all content

Moderate

Escape Sequences: Backslashes and New Line

APCSA-TSWXYV

Consider the following code segment.

System.out.print("\\\n\"1\\\n\"2\\\n\"3");

What is printed as a result of executing the code segment?

A

\n"1\n"2\n"3

B

\n\"1\n\"2\n\"3

C

\
"1\
"2\
"3

D

\"1\
\"2\
\"3

E

Nothing is printed because of a syntax error.