Which two HttpServletResponse methods will you use to provide this information?

You are creating a servlet that generates stock market graphs. You want to provide the web

browser with precise information about the amount of data being sent in the response stream.
Which two HttpServletResponse methods will you use to provide this information? (Choose two.)

You are creating a servlet that generates stock market graphs. You want to provide the web

browser with precise information about the amount of data being sent in the response stream.
Which two HttpServletResponse methods will you use to provide this information? (Choose two.)

A.
response.setLength(numberOfBytes);

B.
response.setContentLength(numberOfBytes);

C.
response.setHeader(“Length”, numberOfBytes);

D.
response.setIntHeader(“Length”, numberOfBytes);

E.
response.setHeader(“Content-Length”, numberOfBytes);

F.
response.setIntHeader(“Content-Length”, numberOfBytes);

Explanation:



Leave a Reply 0

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