Question 1

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.

This entry was posted in Term 2. Bookmark the permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *