Prev Next

Java / Data types

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.

More Related questions...

Show more question and Answers...


Comments & Discussions