Which of these can not be used for a variable name in Java?
A. identifier
B. keyword
C. identifier & keyword
D. none of the mentioned
Answer: Option B
A. identifier
B. keyword
C. identifier & keyword
D. none of the mentioned
Answer: Option B
Which of the following is not a valid identifier for a Java variable?
A. my_var
B. _myVar
C. 3rdVar
D. $var
Join The Discussion