Size of float and double in Java is
A. 32 and 64
B. 64 and 64
C. 32 and 32
D. 64 and 32
Answer: Option A
Solution(By Examveda Team)
The size of float in Java is 32 bits, and the size of double in Java is 64 bits.Join The Discussion
Comments ( 2 )
Related Questions on Data Types and Variables
What is the maximum value that can be stored in a byte variable in Java?
A. 127
B. 255
C. 32767
D. 64
What is the default value of an int variable in Java if it's not explicitly initialized?
A. 0
B. 1
C. -1
D. Null
Which of the following is not a valid identifier for a Java variable?
A. my_var
B. _myVar
C. 3rdVar
D. $var
Size of float is 4 bytes i .e = 32 bits and size of double is 8 bytes i. e = 64 bits.
plz clear doubt how this answer is correct .