Eight kinds of data types into four categories

Integer types: byte byte, short byte short, int lower integer, long integer long int type generally needs to meet the daily

Float type: float Single-precision floating-point double-precision float double

Character type: char represents a character, such as: 'gray'

Boolean: booleam expressed as true or genuine flase

note:

In Java default integer int type, int if more than the range of L can add back as 12345679810L

The default type double floating point, if you want to represent as a float type, F add back as 1.69F

Guess you like

Origin www.cnblogs.com/sangejava/p/11780569.html