Beginner Java
Q23 / 100

Which of these is a valid Java identifier?

Correct! Well done.

Incorrect.

The correct answer is B) _myVar

B

Correct Answer

_myVar

Explanation

Java identifiers must start with a letter, underscore, or dollar sign. _myVar is valid; 2count starts with a digit, class is a keyword, and my-var contains a hyphen.

Progress
23/100