1.

____________ submits a Runnable task for execution and returns a Future representing that task.(a) submit(Callable task)(b) awaitTermination(c) submit(Runnable task, T result)(d) invokeAll()This question was posed to me by my college director while I was bunking the class.This intriguing question comes from Batching Tests in portion Running JUnit Tests from Ant of JUnit

Answer»

Right OPTION is (C) submit(Runnable task, T RESULT)

To elaborate: The function TAKES as parameters the task to submit and the result to return.



Discussion

No Comment Found

Related InterviewSolutions