The example comes from a mock exam of JQPlus 4.
It may well be a modification from the JLS example in
JLS 10.7 From other posting I understand that array overrides method Object.clone().
An overriding method can choose not to throw an exception. Hence the code does not have to handle the exception.
It seems that even compilers in the past did not know this and generated an error.
Is there any way, other than digging through the JLS, to know if there is an exception thrown or not?