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.
Quiz, Objective, Multiple Choice Question (MCQ), Test Bank Solution and Short Answers.