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
Math,
4 months ago
Computer Science,
4 months ago
CBSE BOARD XII,
4 months ago
Accountancy,
8 months ago