Computer Science, asked by PHOENIX234, 9 months ago

int a = 4, b = 2, C = 3;
System.out.println("Output 1: " + (a = b * c));
System.out.println("Output 2: " + (a = (b * c)));
DONOT SPAM..​

Answers

Answered by subham21122007
1

Answer:

In the first println statement, the expression is (a + 2 < b * c). b * c is evaluated first as * has higher precedence than + and <. After that a + 2 is evaluated as between + and <, + has higher precedence. Comparison is done in the end. As 4 < 4 is false so false is printed. The case of second println statement is similar

Explanation:

Similar questions