4
AssignmentMultiple Choice

Java Math Operations

Question 4 • ASC Programming, Games, Apps and Society

What statement denotes the difference in bytes occupied by an int and a float value in Java?

Answer
A
Int takes 4 bytes; float takes 4 bytes.
B
Int takes 2 bytes; float takes 2 bytes.
C
Int takes 8 bytes; float takes 1 byte.
D
Int takes 4 bytes; float takes 8 bytes.
Previous
Next