Tuesday, March 10, 2009

How does Java handle integer overflows and underflows? (CoreJava)

Question :How does Java handle integer overflows and underflows? (CoreJava)
Answer :It uses those low order bytes of the result that can fit into the size of the
type allowed by the operation.

No comments: