Current location - Plastic Surgery and Aesthetics Network - Plastic surgery and medical aesthetics - What is the concept of byte in the basic data type in java? Please list several byte constants, thank you!
What is the concept of byte in the basic data type in java? Please list several byte constants, thank you!
Byte is the data type with the smallest value range in shaping. When assigning a value to byte, only numbers between-128 (negative) and 127 (positive) can be taken.

In addition to byte shaping surgery

Short: -2 power of 15 to minus one power of 15 (between -32768 and 32767).

Int: Minus one from the 3 1 power of -2 to the 3 1 power of 2 (between -2 147483648 and 2 147483647).

Long: the data type with the largest range long:shaping, from -2 to 63, minus one.

Pure handwriting, hope to give points! !