Accenture Primer
Accenture DumpmediumAccenture PrimerPrimer-Dump

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.

Related Accenture Accenture Primer questions

Practice more Accenture Accenture Primer questions

PrimerDumps has 1400+ primer questions, 2026 mocks and coding hands-on — all free.