You are not logged in.
- Topics: Active | Unanswered
Pages:: 1
#1 2015-04-28 04:59:42
HttpServletResponse methods:
Question:
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 HttpServletResponse methods will you use to provide this information?
Option A):
response.setIntHeader("Length", numberOfBytes);
Option B):
response.setContentLength(numberOfBytes);
Option C):
response.setHeader("Length", numberOfBytes);
Option D):
response.setLength(numberOfBytes);
Correct Answer is Option B):
response.setContentLength(numberOfBytes);
Failure is the first step towards seccess.
Offline
2015-04-28 04:59:42
- Advertisement
- Ads By Google
Re: HttpServletResponse methods:
\n
Pages:: 1