Computer Science, asked by Ms2003, 1 year ago

what are the rules to assign a variable in Java programming?

Answers

Answered by nitish8089
1
first declared the variable with valid identifier and assign the value on them
Answered by Harsh121390
5

Answer:

Explanation:Rules to assign variable in a program : 1. A variable may have any number of character.

2. It may contain alphabets,digits,dollar sign or underscore.

3. The underscore can be used in between the character to separate the words of a variable name.

4. The variable name should be meaningful which easily depicts its meaning.

Similar questions