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 are the high-level thread states? : Java thread
How do you know if a value is nan?
What is a "pure virtual" member function?
How arrays are stored in memory in java?
What is executor memory?
How do you classify Dialog Box?
What is a dot notation?
What is difference between an object and a class?
Can we have a try block without catch block?
what are abstract functions?
Are the imports checked for validity at compile time? Will the code containing an import such as java.lang.abcd compile?
Difference between nested and inner classes ?
What are the different types of collections in java?
What is a condition in java?
Is java se free?