Which character below is not allowed in an identifier?

Which character below is not allowed in an identifier?

a) $
b) _
c) 0  (zero)
d) q
e) ^


Answer:  e.

Explanation:  Java identifiers can consist of any letter, digit, $ or _ as long as the identifier starts with a letter or _.  ^ is not a legal character.


Java

Learn More Multiple Choice Question :