What are integer overflows and underflows and how to handle
them?
Answer Posted / nirmala
If the specified value exceeds the range that will result
overflow.
similarly,
if the specified value below the range that will result in
underflow
ie
byte b=259;(butits rangeis(-127 to 128) totally 256
in this u will get overflow error.
| Is This Answer Correct ? | 26 Yes | 11 No |
Post New Answer View All Answers
What is string in java? String is a data type?
What is difference between string and stringbuffer?
What is the difference between yielding and sleeping?
What is a final class in java?
Explain the concept of proper inheritance?
What is the difference between heap memory and stack memory?
Is array dynamic in java?
Why enumeration is faster than iterator?
What is the maximum size of byte array in java?
Is map sorted in java?
Is string a wrapper class?
What is the purpose of static methods and variables?
What is http client in java?
What is reverse function?
What is null statement?