多做题,通过考试没问题!

Java认证考试

睦霖题库>其他计算机考试>Java认证考试

You are creating a servlet that generates stock market graphs. You want to provide the web browser withprecise information about the amount of data being sent in the response stream.  Which twoHttpServletResponse methods will you use to provide this information?()

  • 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);
正确答案:B,F
答案解析:
进入题库查看解析

微信扫一扫手机做题