Question: what are the different types of variables in java?
Answer: String - stores text, such as "Hello". ... 
int - stores integers (whole numbers), without decimals, such as 123 or -123.
float - stores floating point numbers, with decimals, such as 19.99 or -19.99.
char - stores single characters, such as 'a' or 'B'.