System.out.println(x/13); In the above code 'x' is an integer so an integer / integer returns another int. This int is promoted to a long & returned to the called place.

The "/" operation, when perfomed on two ints, is a "truncated division operation". That is, the fractional part (which would be there in a mathematical sense) is thrown away. So 1/3 is not 0.333333..., it's 0 (exactly.) 28/13 is not 2.1538461538461538461538461538461..., it's 2 (exactly.)

If you want an approximation to the real result you can use: