Latest Tutorials| Questions and Answers|Ask Questions?|Site Map



Home Answers Viewqa Java-Beginners How does Java handle integer overflows and underflows?
Login         

View Questions and Answers by Category

Advertisements


 
Have Programming Question? Ask it here!
 
 
 


Java Coder
How does Java handle integer overflows and underflows?
1 Answer(s)      a year and 6 months ago
Posted in : Java Beginners


hi,

How does Java handle integer overflows and underflows?

Thanks,


Advertisement
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
Advertisements
 

 

 

DMCA.com