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

Match these men with the appropriate items. 1. Iron Chancellor Hay 2. AFL Roosevelt 3. Open-Door Policy Whitney 4. invented iron plow Bismarck 5. Alaska
What did church hill think of stallin
What type of camera does John Frankenheimer like to use when he is filming?
Skin from male mouse grafted on back of female. within 2 wks graft becomes necrotic and must be removed. what cells responsible
What did Oveta Culp Hobby do in WW2 for Texas?
Which line from the police report describes the same event?
What are icy objects that mostly travel in long, elliptical orbits around the sun?
write the standard form of the line that passes through the given point. include your work in your final answer. (-8,0) and (1,5)
Why did the Catholic Church express interest in the exploration of foreign lands?
solve y=5/8b + 10 for b