Do you know that? Think of the user and NOT yourself while designing. next

How does Java handle integer overflows and underflows?

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