How big in bytes are each of the 6 numeric primitive data types?

Answer:
  • boolean - 1 bit (1/8 bytes) - The actual storage requires for a boolean type is not defined for Java implementations.
  • byte - 1 byte
  • short - 2 bytes
  • int/char - 4 bytes
  • long - 8 bytes
  • float - 4 bytes
  • double - 8 bytes
First answer by Moobler. Last edit by Moobler. Contributor trust: 354 [recommend contributor recommended]. Question popularity: 1 [recommend question].