Javaは、int は32bit で byte は8bitと決められている。
代入時、iの上位の24bitは捨てられ、下位8bitがそのままbに入る。
すなわち、
i = 0...0100000010 (258)
b = xxxxxx00000010 (2)
となる。