Given the following code:
What should you do at line 1 to enable this servlet receive request data without blocking?
Given the following code:
What should you do at line 1 to enable this servlet receive request data without blocking?
In order to enable the servlet to receive request data without blocking, you should define a ReadListener and assign it to the request input stream. This is because ReadListener allows you to handle incoming data as it becomes available without blocking, which is the primary mechanism for implementing non-blocking I/O in servlets.
Answer is B
Answer is B https://docs.oracle.com/javaee/7/tutorial/servlets013.htm#BEIHICDH
Answer B. Nonblocking I/O 1- Put the request in asynchronous mode 2- Obtain an in/output stream from request/response objects. 3- Assign a read/write listener to the stream. 4- Process the request/response inside the listener's callback methods