Compiler does not treat arrays as objects. The following code does
not compile:
Object obj = new int[3];
- relates to
-
JDK-1184279 Allocating multi-dimensional arrays does not work
-
- Closed
-
JDK-1184279
Allocating multi-dimensional arrays does not work