Send a link to your students to track their progress
11 Terms
1
New cards
primtive
int, double, boolean
2
New cards
reference
String
3
New cards
data types
it's very important to tell the computer what kind of input you're going to give it, so it knows how to deal with the data
4
New cards
type
tells Java two things: What possible values can be stored - this is called a domain and is important as Java needs to know how big of a box in memory to allocate for the input. What operations can be performed on the data - for example can two variables of this type be added together?
5
New cards
int
used for storing an integer value. ints are pretty small in memory
6
New cards
double
used for storing a decimal value (a number which is not an integer). doubles take up more space than ints because of the decimal component
7
New cards
boolean
used for storing a true or false value, in memory this value can be represented by a single bit of memory, stored as a 1 or 0
8
New cards
Strings = reference data type
take up lots of space in memory because they have to store each individual character separately
9
New cards
Input Mismatch Exception = runtime error
the code will still compile
10
New cards
literal
a value in Java which is a direct representation of the data
11
New cards
final
used to avoid having to keep typing it you can use a variable to store its value