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
Explain the difference between intermediate and terminal operations in java8?
What is default locale java?
What is the difference between variable & constant?
Explain jdk, jre and jvm?
What are thread local variables?
Is string a class?
What will happen to the exception object after exception handling?
How to connect to a remote database using Applet?
How do listeners work?
Explain the differences between static and dynamic variables?
What is the purpose of abstract class?
How does multithreading take place on a computer with a single cpu?
Why arraylist is not synchronized in java example?
Explain about version control?
List the different types of classloaders in java.