1. byte type: 1 byte, 1 byte, 8 bits. For example, 123 and 100 range:-128 ~ 127 (-2 7 ~ 2
2. Short integer takes up 2 bytes of 16, such as123,456. Range: (-32768 ~ 32767) (-215-1.
3.int integers account for 4 bytes and 32 bits, such as 123456. The range is:-2147483648 ~ 2147483647 (-231~ 231).
4. Long integers account for 8 bytes and 64 bits, such as:123,456-922337203685475808 ~ 92237203685475807 (-
2^63~2^63- 1)
5.float single-precision floating-point type: 4 bytes and 32 bits, such as 123.567f, 456. 123f, 3.0f.
6.double double-precision floating-point type: accounting for 8 bytes and 64 bits, such as123.567,456.123. The default decimal point type is double.
7.char character type, accounting for 2 bytes, such as' 2',' a',' middle' and' country'. Note: it must be enclosed in single quotation marks.
8.boolean Boolean type occupies 4 bytes and has only two values, true and false-false.