Is there any difference - in Java - between defining float variables like, e.g., this: 1 and this: 1f? Is the JVM doing any casts at run-time when I write 1, or something that could slow down my app?
Regards
1 is implicitly considered as int literal where 1f is considered as float literal
See
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With