Computer Science, asked by dipaknishithp2t36t, 1 year ago

what are the rules for naming variables

Answers

Answered by helpme4
2
After the first initial letter, variable names may also contain letters and the digits 0 to 9. ...


The name can be of any length, but don't get carried away.

Uppercase characters are distinct from lowercase characters

You cannot use a java keyword (reserved word) for a variable name

dipaknishithp2t36t: thanks
Answered by Anonymous
0

The rules for naming a variable is as follows :-

  • A variable may have any number of characters.
  • It may contain alphabets, digits and underscore.
  • The underscore can be applied in between the characters to increase the length of a variable name.
  • Variable names should be meaningful which easily depicts the logic.
Similar questions