About Question enthuware.ocpjp.v17.2.3230

Help and support on OCA OCP Java Programmer Certification Questions
1Z0-808, 1Z0-809, 1Z0-815, 1Z0-816, 1Z0-817

Moderator: admin

Post Reply
oswegobay
Posts: 3
Joined: Sat May 04, 2024 11:43 pm
Contact:

About Question enthuware.ocpjp.v17.2.3230

Post by oswegobay »

In case someone else stumbles on this question, here is from the Java Language Specification 14.4:
It is a compile-time error if the LocalVariableType is var and any of the following are true:

More than one VariableDeclarator is listed.

The VariableDeclaratorId has one or more bracket pairs.

The VariableDeclarator lacks an initializer.

The initializer of the VariableDeclarator is an ArrayInitializer.

The initializer of the VariableDeclarator contains a reference to the variable.

Post Reply

Who is online

Users browsing this forum: No registered users and 32 guests