Computer Science, asked by veenadass144, 5 months ago

Predict whether the following variables are valid identifiers

in Java and justify your selection. i) data_rec ii) final​

Answers

Answered by Oreki
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 anindyaadhikari13
1

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