explain the concept of variable and data types with examples
Answers
Answered by
4
HELLO,
A variable is a container that holds values that are used in a Java program. Every variablemust be declared to use a data type. For example, a variable could be declared to use one of the eight primitive data types: byte, short, int, long, float, double, char or boolean.
A variable is a container that holds values that are used in a Java program. Every variablemust be declared to use a data type. For example, a variable could be declared to use one of the eight primitive data types: byte, short, int, long, float, double, char or boolean.
Similar questions