Predict whether the following variables are valid identifiers
in Java and justify your selection. i) data_rec ii) final
Answers
Answered by
0
I. data_rec - It is a valid identifier as, it satisfies all conditions for naming a identifier.
II. final - It is not a valid identifier as, final is a keyword and cannot be used as an identifier.
Answered by
0
Question:-
Predict whether the following variables are valid identifiers or not.
Answer:-
- data_rec is a valid point identifier as it satisfies all the conditions for being an identifier.
- final is an invalid identifier as it is a keyword in java and identifier name cannot be a keyword.
Similar questions
English,
5 months ago
Science,
5 months ago
Math,
9 months ago
Social Sciences,
9 months ago
Chinese,
1 year ago