Sail E0 Webinar
Question
Other than RejectedExecutionException, the execute(Runnable command) function can also throw which exception?
Options:
A .  Arithmetic
B .  ArrayIndexOutOfBounds
C .  StringIndexOutOfBounds
D .  NullPointerException
Answer: Option D


This exception is thrown if the command passed as argument is null.



Was this answer helpful ?
Next Question

Submit Solution

Your email address will not be published. Required fields are marked *

Latest Videos

Latest Test Papers