+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.

Related questions

0 votes
asked Oct 21, 2020 in JAVA by rahuljain1
0 votes
asked Aug 21, 2022 in JAVA by sharadyadav1986
...