Search Interview Questions | Click here and help us by providing the answer. Click Correct / Improve and please let us know. |
|
|||
|
| ||||
| Interview Questions and Answers | ||||
| ||||
| Ans. 5.0 operation between two ints generate int only. so 7/5 generates 1 and not 1.4. Multiplication between int and float generates float and hence 1 * 5.0 = 5.0 | ||||
java.lang.ArithmeticException: Non-terminating decimal expansion; no exact representable decimal result. | ||||