Quiz: Text and Numbers
Don't put your answers in that box. Click Start and answer the questions below.
What does the statement System.out.println(3 + 4 + 5)print? |
12 |
3 + 4 + 5 is 12. That's what is passed to println . |
What does the statement System.out.println("3 + 4 + 5")print? |
3 + 4 + 5 |
Note the quotes around "3 + 4 + 5" . Everything inside is printed—including the spaces around the + operators. |