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.

Следи за CodeGalaxy

Мобильное приложение Beta

Get it on Google Play
Обратная Связь
Продолжайте изучать
тесты по Java
Cosmo
Зарегистрируйся сейчас
или Подпишись на будущие тесты