Explanatory Question
What will be the output of the following code?
(i)
int k = 5, j = 9; k += k - j + k; System.out.println("k = " + k); System.out.println("j = " + j);
(ii)
double b = -15 * 6; double a = Math.rint(Math.abs(b)); System.out.println("a = " + a);
Read the answer carefully and go through the related questions on the right side to improve your understanding of this topic.