ExamQuestions.com

Register
Login
Java EE 7 Application Developer Exam Questions

Oracle

Java EE 7 Application Developer

39 / 72

Question 39:

Given the following code: 
image
What should you do at line 1 to enable this servlet receive request data without blocking? 

Answer options:

A. Use a Runnable instance with the start () method of AsyncContext.
B. Define a ReadListener and assign it to the request input stream.
C. Create a Callable class and delegate this operation to a ManagedExecutorService by using the dispatch method of AsyncContext.
D. Define an AsyncListener and assign it to the AsyncContext object.