Don't know if I'm following what you mean, but I originally started playing around with K&B's exercise
class Zippy
{
String[] x;
int[] a[] = {{1,2}, {1}};
Object c = new long[4];
Object[] d = x;
}
and then added some array declarations to see if they work.
Now that you've pointed out the SOP problem, I've put the above code in main and it doesn't compile, because x is unassigned.
Why does it compile without main?
Am I missing out on something? I'm a novice programmer and shy about asking stupid questions, but still?