How does Java handle integer overflows and underflows?

hi,

How does Java handle integer overflows and underflows?

Thanks,

View Answers

April 18, 2013 at 3:24 PM

Hi friend,

Crossing the prescribed maximum and minimum limit size of the data type is called overflow and underflow. An integer if it overflows then it returns to the minimum value and then continues from there and if it underflows then it returns to the maximum value and then continues from there.









Related Tutorials/Questions & Answers:
Advertisements