Current location - Loan Platform Complete Network - Big data management - What are the basic data types in java
What are the basic data types in java
The Java language provides eight basic types:

Six numeric types (four integer, two floating-point)

Byte byte 8-bit short integer short 16-bit integer int 32-bit long integer long 64-bit

Single-precision float 32-bit double-precision double 64-bit

One kind of character type

Character char 8-bit

There is also a boolean type.

Boolean: boolean 8-bit can store "True" and "false"

Integer is a wrapper around int, and has the same range as int