Leave a Reply 2

Your email address will not be published. Required fields are marked *


imyrta

imyrta

Answer: B

Explanation:

In the first println the + operation is used for string concatenation so the printed value will be this one:
Result: 35

In the second println we see that the addition operation is being enclosed with “()”. In this case the arithmetic operation will be executed before the string concatenation so as a result the printed value will be this one:
Result: 8