As shown in the figure, what is the difference between the unparenthesized value and the parenthesized value of afigb?

Oct.13,2021

although I don't understand java , the languages are interlinked

.

if you don't write parentheses, the preceding string will be directly concatenated with the following a , and then with the following b

.

for example, a is 2, b is 3, then the result is

ab:23

if you add parentheses, you will count the parentheses first. axib is 5, so the final result is

.
ab:5

does not add parentheses, because you are preceded by "the value of a plus b", which is a string, so the addition becomes the addition of strings, so it is 632767. For example, add parentheses, aqumb is the addition of numbers, and get 32773, so the result is different

.
Menu