Eight primitive data types

Type Bytes Use
byte 1 -128 to 127
short 2 -32,768 to 32,767
int 4 2,147,483,648 to 2,147,483,647
long 8 -9,223,372,036,854,775,808 to 9,223,372,036,854,775,807
float 4 Single precision -3.4E38 to 3.4E38 with up to 7 significant digits.
double 8 Double precision, -1.7E308 to 1.7E308 with up to 16 significant digits.
char 2 A single unicoe character that's stored in two bytes.
boolean 1 true or false

float interestRage = 8.125L;

long numberOfBytes = 20000L;

double distance = 3.65e+9;

final double SALES_TAX = .075;