how do you declare a variable in Java
Answers
Answered by
0
Answer:
To declare (create) a variable, you will specify the type, leave at least one space, then the name for the variable and end the line with a semicolon ( ; ). Java uses the keyword int for integer, double for a floating point number (a double precision number), and boolean for a Boolean value (true or false).
Answered by
1
Answer:
To declare (create) a variable, you will specify the type, leave at least one space, then the name for the variable and end the line with a semicolon ( ; ). Java uses the keyword int for integer, double for a floating point number (a double precision number), and boolean for a Boolean value (true or false).
Similar questions
Math,
3 months ago
Chemistry,
3 months ago
CBSE BOARD X,
3 months ago
India Languages,
6 months ago
Math,
6 months ago
Biology,
1 year ago
English,
1 year ago