Question discussion

Which of the following is NOT a valid identifier in Java?

359441Medium DSSSB TGT Computer Science 0 replies 0 views
0
Which of the following is NOT a valid identifier in Java?
  • Amyvar123
  • B_myvar
  • Cstatic
  • Dmy_var123
Correct answer: C

Explanation

"static" is a reserved keyword in Java, so it cannot be used as an identifier.

Discussion 0

Nobody has replied yet. Start the discussion!