KnowledgeBoat Logo
|

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
  1. 94.245 is a double and its size is 8 bytes.
  2. 50 is an int and its size is 4 bytes.
  3. 'c' is a char and its size is 2 bytes.
  4. true is a boolean and its size is 1 byte.

Answered By

8 Likes


Related Questions