Choose legal identifiers from the below options: a)4thvariable b)_98_
Answer options
A
&count
B
$says
C
new
Correct answer: $says
Explanation
In Java, identifiers can start with a letter, underscore (_), or dollar sign ($). '4thvariable' starts with a digit (illegal), '_98_' is valid (in stem), '&count' uses & (illegal), '$says' uses $ (legal in Java), 'new' is a reserved keyword (illegal). '$says' (index 1) is the legal identifier among the options.