e) Difference between double and float variables in Java.
In java, float takes 4 bytes in memory while Double takes 8 bytes in memory.
Float is single precision floating point decimal number while Double is double precision decimal number.
e) Difference between double and float variables in Java.
In java, float takes 4 bytes in memory while Double takes 8 bytes in memory.
Float is single precision floating point decimal number while Double is double precision decimal number.