Identify the following as valid or invalid variable name:
1) 10code
2)Else
3)Employee
4)Abc
5)A.B.C
Answers
Answered by
0
Answer:
1st one is valid but give a under score to so that it would look more readable results "10_code".
second one is not a variable it is a statement if you use it as a variable it will give us an error
3,4,5 are good variables but be careful in the case-sensitive languages that means we cannot use capital letters at starting to declare the variable
cation : don't use 5th variable name in Java because it analys as it is an data structure
thank you
Similar questions