Variables and Data Types

AP Computer Science A· difficulty 2/5

Which is NOT a valid Java identifier?

  • A

    2nd

    check_circle
  • B

    myVar

  • C

    _count

  • D

    $total

Explanation

Identifiers cannot begin with a digit; can start with letter, <code>_</code>, or <code>$</code>.

Want 10 more like this — adaptive to your weak spots?

Related questions