February 2013
Intermediate to advanced
672 pages
16h 2m
English
An array creation expression is used to create new arrays (§10).
ArrayCreationExpression: new PrimitiveType DimExprs Dimsopt new ClassOrInterfaceType DimExprs Dimsopt new PrimitiveType Dims ArrayInitializer new ClassOrInterfaceType Dims ArrayInitializerDimExprs: DimExpr DimExprs DimExprDimExpr: [ Expression ]Dims: [ ] Dims [ ]
An array creation expression creates an object that is a new array whose elements are of the type specified by the PrimitiveType or ClassOrInterfaceType.
It is a compile-time error if the ClassOrInterfaceType does not denote a reifiable type (§4.7). Otherwise, the ClassOrInterfaceType may name any named reference type, even an abstract class type (§8.1.1.1) or ...
Read now
Unlock full access