Question: Declare appropriate variables for all eight primitive data types. Think about what those data types hold and what might be appropriate. Ex: a double data
Declare appropriate variables for all eight primitive data types. Think about what those data types hold and what might be appropriate. Ex: a double data type holds numbers with decimals. What can you think of that has a decimal value? Money, pi, grade percentages, etc. Do not assign them values.
The eight primitive data types in java: byte, short, int, long, float, double, char, and boolean.
To declare a variables: DateType variableName;
Example:
int siblings;
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
