As a result of what commands the console will display the number "10" and the word "ten"
(the order of their output does not matter in this question: "10 ten" or "ten 10")
Explanation
In this case, such result is due to the priority of operations. If in the beginning the number is added to the line and then the resulting line is added to the second number, the resulting line contains two original numbers and the original line. If in the beginning the numbers are added together, and then with the line, the resulting line is the sum of these numbers and the original string.
Java
Java Quiz
Start Quiz

or Read more about Java Quiz

Follow CodeGalaxy

Mobile Beta

Get it on Google Play
Send Feedback