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.
About Question enthuware.ocpjp.v17.2.3230
Moderator: admin
-
- Posts: 3
- Joined: Sat May 04, 2024 11:43 pm
- Contact:
About Question enthuware.ocpjp.v17.2.3230
In case someone else stumbles on this question, here is from the Java Language Specification 14.4:
Who is online
Users browsing this forum: No registered users and 32 guests