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
Which sorting algorithm is best in java?
Where to store local variables?
What is meant by stack and queue?
Why is method overloading not possible by changing the return type in java?
How does a for loop work?
What is a singleton factory?
What is udp in java?
What does three dots mean in java?
Can we assign the reference to this variable?
Why string is called as immutable?
Is void a return type?
What are the application of stack?
What are the 2 types of java programs?
What is the purpose of format function?
What is finally and finalize in java?