In Bill Brogdon's book, Exam Cram 2nd Edition, P50:
<code>
1. int counts[];
2. int[] counts;
3. boolean flags [ ];
4.
String names[];
5. MyClass[][] things;
6. System.out.println("counts = " + counts);
If lines 1 through 6 were in a method and the method was exected, line 6 would print "counts = null" bexause the array object has not yet been constructed.
</code>
In my mind, any declaration in a method will not be initialized except array elements, but this array object is not still initialized. So I tried to compile it using JDK 1.3, it complained that counts not initialized. Does JDK 1.2 not complain?
Jason