Computer Applications
Which integer and floating point data types take up the same number of bits in computer memory?
Values & Data Types Java
17 Likes
Answer
Both, int and float take up 32 bits in memory. Similarly, both long and double take up 64 bits in memory.
Answered By
9 Likes
Related Questions
What is variable initialisation in Java? What are the default values of the following type of variables? short, int, long, float, double, and char.
Describe primitive data types in Java.
List the size of primitive data types in Java.
Provide the declaration for two variables called xCoordinate and yCoordinate. Both variables are of type int and both are to be initialised to zero in the declaration.