Question 37Asked in DSSSB TGT Computer Science (Technical), 13 Sep 2025, Shift 3 (5:00 PM)

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

  1. Amyvar123
  2. B_myvar
  3. Cstatic
  4. Dmy_var123
Show answerHide answer

Correct answer: (C) static

Explanation

static is a reserved keyword in Java and cannot be an identifier. Letters, digits (not first), _ and $ are allowed.

From DSSSB TGT Computer Science PYQ (Technical), 13 Sep 2025, Shift 3 (5:00 PM)

This is question 37 of DSSSB TGT Computer Science PYQ (Technical), 13 Sep 2025, Shift 3 (5:00 PM). See all questions of this paper with answers, or attempt the paper as a timed online test to get your score and all-India rank.