lukeallen9553 lukeallen9553
  • 24-02-2020
  • Computers and Technology
contestada

Find the largest and smallest byte,short,int,long,float, and double. Which of these data types requires the least amount of memory?

Respuesta :

janehill33 janehill33
  • 02-03-2020

double, long, float, short, byte

Explanation:

The given data types are built-in types. According to java, the following holds right to justify the order.

Double:

  • This occupies 64 bits
  • It can hold decimal values
  • Example: "1.23456e300d, -1.23456e-300d, 1e1d"

Float:

  • It occupies 32 bits
  • Holds decimal values
  • Example: "1.23e100f, -1.23e-100f, .3f, 3.14F"

Long:

  • It occupies 64 bits
  • Example: "-2L, -1L, 0L, 1L, 2L"

Short:

  • It occupies 16 bits
  • Stores twos complement integer

Byte:

  • It occupies 8 bits
  • Stores twos complement integer
Answer Link

Otras preguntas

A chemist has been tracking the amount of bacteria grown over a period of days(x). The chemist's data is shown in the table. What is the inverse function of the
37. Find the square root of 85 correct to the nearesttenth.(1) 9.1 (2) 9.2 (3) 9.3 (4) 9.4 (5) 9.5​
Pls use the diagram to answer the question thanks ​
Find the diagonal of a square whose sides are of the given measure. Given = 3v3
Use the Midpoint Rule with the given value of n to approximate the integral. Round the answer to four decimal places. [5,0] sin(x^2) dx, n = 5 M5 =
What are some things you can do to further build up your network of mentors.
The Articles of Confederation gave the national government the power to
Please help me to figure out this question. Thanks
Expand the brackets 1/2(4y-2)
find the slope between the points (-4,5) and (-8,-5)​