State whether the following variables name are valid/invalid. If invalid, rectify it and give reasons of all these four. (in java)
i. name1
ii. float
iii. c.p.
iv. A>B
Answers
Answered by
3
Answer:
name1 is a valid variable name.
float is not a valid variable name as it is a keyword.
c.p. is not a valid variable name as it contains special character.
A>B is not a valid variable name as it contains special character.
Similar questions
Hindi,
3 months ago
English,
3 months ago
Physics,
3 months ago
Accountancy,
7 months ago
Physics,
11 months ago