You are not logged in.

#1 2015-04-28 04:59:42

hasnain
Administrator
From: Chichawatni
Registered: 2014-10-13
Posts: 8,355
Website

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.

2015-04-28 04:59:42

Advertisement
Ads By Google

Re: HttpServletResponse methods:



\n

Board footer