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
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.
List the size of primitive data types in Java.
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.