Computer Applications
Arrange in descending order of byte size the following values:
'c', 94.245, true, 50
Values & Data Types Java
18 Likes
Answer
94.245, 50, 'c', true
Explanation
- 94.245 is a double and its size is 8 bytes.
- 50 is an int and its size is 4 bytes.
- 'c' is a char and its size is 2 bytes.
- true is a boolean and its size is 1 byte.
Answered By
8 Likes