Question

1. For the following java statements, figure out the values to be saved in variables: (1) int x = 49; x and y are:__________ y =x++; (2) int x =

49; y = --x; x and y are:________ (3) int x = 20; int y = 40; int r= x++ - --y; x, y and r are:_______ (4) int x = 20; int y = 40; int r=x-- + y++; x, y and r are: _______

Fig: 1

Fig: 2

Fig: 3

Fig: 4

Fig: 5

Fig: 6

Fig: 7

Fig: 8

Fig: 9

Fig: 10

Fig: 11

Fig: 12

Fig: 13

Fig: 14

Fig: 15