Computer Science, asked by vikassonkar200pc7ctv, 1 year ago

what are the rules to assign a variable in java programming

Answers

Answered by Anonymous
29
✔✔✔Ur answer✔✔✔


⭐⭐Rules for naming variables: All variable names must begin with a letter of the alphabet, an underscore or✔ ( _ ) ✔or a dollar sign ($).

⭐⭐The convention is to always use a letter of the alphabet. ✔✔

⭐⭐The dollar sign and the underscore are discouraged.✔✔
Answered by ajaymadhusingh4
15

1: after the main initial later variable names may also contain digits 0 to 9

2: the name can be of any letters butdo do not get carried away

3:uppercase character are distinct for lowercase character

4: you can use a java keyword for a variable name

hope it helps

Similar questions