15 lines
222 B
Text
15 lines
222 B
Text
|
/* Test creating arrays of objects and accessing a null element*/
|
||
|
|
||
|
class A{}
|
||
|
|
||
|
class Main {
|
||
|
void main() {
|
||
|
A[] x;
|
||
|
A a;
|
||
|
x = new A[3];
|
||
|
x[1] = new A();
|
||
|
x[2] = a;
|
||
|
|
||
|
x[2] = new A();
|
||
|
}
|
||
|
}
|