Computer Science, asked by Anonymous, 5 months ago

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 imtiyazallam
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