How does Java handle integer overflows and underflows?

Ads
 

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.

Ads









Related Tutorials/Questions & Answers:
How does Java handle integer overflows and underflows?
How does it take to learn Java
Advertisements
How does it take to learn Java
How does it take to learn Java
How does the Java for each loop work?
How to handle Transaction IN and OUT in Inventory using java
How do I handle the reaction of a circle and a semi-circle colliding in java?
Java File - Learn how to handle files in Java with Examples and Tutorials
Converting a String to Integer in Java
java exception handle
how to handle MySQLIntegrityConstraintViolationException?
How To Read Integer From Command Line In Java
How to handle enter key in javascript
How to use java.net.URLConnection to fire and handle HTTP requests?
Does finally always execute in Java?
How can print integer in method
Does finally always execute in Java?
Does finally always execute in Java?
Does finally always execute in Java?
Java Reverse integer array
How to change object item to integer item
What does core Java include?
Does Java support multiple Inheritance?
Does Java support multiple Inheritance?
Does Java support multiple Inheritance?
What is a pointer and does Java support pointers?
Does Java support multiple inheritance?
ModuleNotFoundError: No module named 'monitor-mysql-overflows'
Why does Java not support operator overloading?
how to check and print the no of times an integer is repeated in an array
How does getcurrentsession() method works in hibernate sessionfactory?

Ads