int (whole numbers)
integer only holds values of neg + pos whole numbers
double (real numbers 6.2)
decimals
pos + neg nums
can hold whole nums but main use fractional values
boolean (true / false)
evaluate true false conditions
flaost (real numbers)
similar to doubles
hold values of better precision
stores these differently.
long (long ints)
big int values
chars (characters - b)
hold single characters
string (“hello world”)
non primitive
collection of characters
variables
uses CamelCase (naming convention) does not need to be declared with a value) store + manipulate data (can be changed while program runs)
constant
uses ALL_CAPITALS as a naming convention
uses final keyword in java
needs value (cannot be changed)
both
identifier/name associated with a particular memory location cannot be called reserve words have spaces case sensitive
procedure
function
parameter