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
Why do we need singleton class?
What is an object in java and how is it created?
What is difference between static and abstract class?
What are the topics in core java?
What is flag in python?
How to create com object in Java?
How do I find and replace in word?
Is java owned by oracle?
What is difference between overloading and overriding in java?
Where are local variables stored?
Can you add null to a list java?
Explain the available thread states in a high-level?
What classes of exceptions may be caught by a catch clause in java programming?
what is mutual exclusion? How can you take care of mutual exclusion using java threads? : Java thread
What is the use of a copy constructor?