What will be displayed after the following statements have b
What will be displayed after the following statements have been executed? int x = 15, y = 26, z = 32; x = x + 12; y = y/6; z -= 14; System.out.println (\"x = \" + x + \", y = \" + y + \", z = \" +z); x = 27, y = 4.333, z = 18
x = 27, y = 5, z = 18
x = 27, y = 4, z = 18
x = 37, y = 14, z = 4
Solution
The output will be x = 27, y = 4, z = 18.
x = x+12, x becomes 27.
As y is int, 26/6 will become 4.
z -= 14, so z becomes 18.
