A named container in memory that stores a value.
What is a variable?
The most commonly used data type for whole numbers in Java.
What is int?
Variable names cannot start with this
What is a number?
Java will throw this type of error if you use a variable before giving it a value.
What is a compile error?
This is what you must do before you can use a variable in Java.
What is declare it?
The data type used to store someone's name or a sentence.
What is String?
The naming convention used for Java variables.
What is camelCase?
This happens when you try to store a String into an int variable.
What is a type error / the program won't compile?
The process of giving a variable its first value.
What is initialization?
The data type that stores true or false.
What is boolean?
The reason you can't use 'int' or 'class' as a variable name.
What are reserved Java keywords?
The difference between = and == in Java.
What is = assigns a value, == checks if two values are equal?
These three real-world examples from the presentation use variables: games, websites, and this.
What is banking applications?
This is the data type for a single letter or character like 'A'.
What is char?
True or false: 'score' and 'Score' are the same variable in Java.
What is false?
This is wrong with the variable name: int 2score;
What is variable names cannot start with a number?
This is the data type you'd use to store a GPA of 3.9
What is double
This is why you'd use double instead of int to store a student's GPA.
Because GPA has decimals and int can only store whole numbers?
What is wrong with: String first name;
What is variable names cannot contain spaces?
Why naming variables x or temp is considered a mistake.
What is they are vague and make the code hard to read and debug?