Java Variables and Data Types Flashcards
Used to store up temporary data to be used in our programs run time
Variables
Stores text such as “hello”. It is surrounded by double-quotes.
String
Stores integers (whole numbers), Without decimal such as 123 or - 123
int
Stores floating-point numbers, with decimal such as 19.99 or -19.99
float
Store single characters such as ‘a’ or ‘B’. Char values are surrounded by single quotes
char
Stores value with two states: true or false
boolean
The type of data inside our variable.
Data Types
Name of the variable that the programmer indicated. It is used to read and write the variable.
Identifiers
The process of joining strings together with the + operator
Concatenation
Classes are treated as data types however, there are data types that are not classes. What are they called?
Base Types