How does Java handle integer overflows and underflows?

 
 

Share on Google+Share on Google+

Java Coder
How does Java handle integer overflows and underflows?
1 Answer(s)      4 years and 8 months ago
Posted in : Java Beginners
Ads

hi,

How does Java handle integer overflows and underflows?

Thanks,

Ads
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.


Ads









Related Tutorials/Questions & Answers:
Advertisements

Ads

 
Advertisement null

Ads