1.

Other than RejectedExecutionException, the execute(Runnable command) function can also throw which exception?(a) Arithmetic(b) ArrayIndexOutOfBounds(c) StringIndexOutOfBounds(d) NullPointerExceptionI got this question during an interview.This key question is from Creating HTML Reports in chapter Running JUnit Tests from Ant of JUnit

Answer»

Right answer is (d) NullPointerException

Explanation: This EXCEPTION is THROWN if the COMMAND PASSED as argument is null.



Discussion

No Comment Found

Related InterviewSolutions