What are integer overflows and underflows and how to handle
them?
Answer Posted / ramesh kumar
byte b = (byte)250;
Here I assinged the value to b more than the positive range
of byte. So, It leads to overflow and we won't get any
error in compile time or run time.
But some unexpected value will be stored into b. i.e b = -
6. This will affect your logic.
| Is This Answer Correct ? | 3 Yes | 0 No |
Post New Answer View All Answers
What is a jit compiler?
What is an example of a conditional statement?
Hi i am creating desktop application in that i want calling to mobile number. i have java telephone api (JTAPI) but i dont understand how it configure & use plese help me
What is the difference between the final method and abstract method?
What is the difference between a checked and an unchecked exception?
How do you sort arraylist in descending order?
Is java written in c?
What is user defined exception in Java?
How do you remove duplicates from an array in java?
What are the differences between processes and threads?
If try block is successfully executed, Then Is Finally block executed?
What is token in java?
Are there structures in java?
State the merge-sort principle and its time complexity.
How to create a fecelet view?