In Java, every value is stored as a
int i = 10;
double d = 24.4;
So far, we've kept these types constant: once we call something an
Humans deal with types implicitly: we can tell 42 (an int or whole number) from 42.0 (a double or real number.)
Computers aren't that smart; they only see
Since computers find dropping information so off-putting, we've got to tell them we really, really mean it.