Exceptions
Posted: Mon Feb 24, 2014 3:29 am
q-46 of 91 QID Test 5
Drag and Drop type..
A piece of code is given and we have to tell the type of exception thrown by that code..
check the fourth option ,it's a static block that throws an exception.Why won't it throw an ExceptionInitializerError exception ??it says no exception.although any exception thrown by a static block is wrapped into an ExceptionInitializerError.
Drag and Drop type..
A piece of code is given and we have to tell the type of exception thrown by that code..
check the fourth option ,it's a static block that throws an exception.Why won't it throw an ExceptionInitializerError exception ??it says no exception.although any exception thrown by a static block is wrapped into an ExceptionInitializerError.