193k views
0 votes
What does the following code display?

int d = 9, e = 12;
System.out.printf("%d %d\\", d, e);
a. %d 9
b. %9 %12
c. %d %d
d. 9 12

1 Answer

3 votes
Answer:
The correct answer is option d.
9 12
Step-by-step explanation:
Because the System.out.printf command is used to display output.
In this d=9, and e= 12. So the 9 and 12 output will be display.
\\ is used for display output in new line


User Taha Kirmani
by
3.2k points