How does Java handle integer overflows and underflows?

Q

How does Java handle integer overflows and underflows?

✍: Guest

A

It uses low order bytes of the result that can fit into the size of the type allowed by the operation.

2012-07-02, 3265👍, 0💬