+1 vote
in JAVA by
Can I store a double value in a long variable without casting?

1 Answer

0 votes
by

No, you cannot store a double value into a long variable without casting because the range of double is more  that long and you we need to type cast. It's not dificult to answer this question but many develoepr get it wrong due to confusion on which one is bigger between double and long in Java.

...