Multiple choice

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

  1. this

  2. 3name

  3. _name1

  4. #name1

  5. None of the above

Reveal answer Fill a bubble to check yourself
C Correct answer
Explanation

Identifier can start with _ (under score) or $ (dollar) and can continue with alphabets and digits.