Variables
are containers for storing data values.
data type
variable is assigned with
data types
String
int
float
char
boolean
stores text, such as “Hello”. String values are surrounded by double quotes
String
stores integers (whole numbers), without decimals, such as 123 or -123
int
stores floating point numbers, with decimals, such as 19.99 or -19.99
float
stores single characters, such as ‘a’ or ‘B’. Char values are surrounded by single quotes
char
boolean