1.

The exception thrown by the ActionSequence mehod is _____________(a) NullPointer(b) Throwable(c) ArrayIndexOutOfBounds(d) ArithmeticI had been asked this question in an interview for internship.My question comes from Setting Up a Maven Project in section Running JUnit Tests from Maven2 of JUnit

Answer»

The correct ANSWER is (b) Throwable

For explanation: Any checked exception thrown MUST be in the throws LIST of the invoked method.



Discussion

No Comment Found

Related InterviewSolutions