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 [] args?
What is a consumer in java?
What is jdbc api?
Which method returns the length of a string?
Does apple use java?
what is optional in java 8?
Why is serialization required?
What is the difference between preemptive scheduling and time slicing?
What is the static keyword?
What is an abstract method in java programming?
Why synchronization is important?
How to display all the prime numbers between 1 and 100
What is qualitative variable?
Can you sort a list in java?
What is byte data type?