1, byte: an 8-bit signed integer with a value range of-128~ 127. Used to store small integer values and byte data of files.
2.short: 16-bit signed integer with a value range of -32768~32767. Suitable for storing medium-sized integer values and processing color values of image pixels.
3. int: a 32-bit signed integer with the range of-2147483648 ~ 2147483647. Used to store large integer values, which is the most commonly used integer type.
4.long: 64 bits, suitable for storing very large integer values, processing time stamps or calculating large numbers.
5.float: 32-bit floating-point type, indicating single-precision floating-point number. It is used to store decimal values with high accuracy and real number operation in scientific calculation.
6.double: 64-bit floating-point type, representing double-precision floating-point number. It is suitable for decimal values with larger storage range and higher precision, and is the most commonly used floating-point number type.
7.char: takes up 16 bits, and is a character type, indicating a single character. Used to store Unicode characters, such as letters, numbers or symbols in text.
8.boolean: takes up 1 bit, which is Boolean and represents a logical value, and can only be true or false. Used to store the results of conditional judgment and control conditional statements in program flow.