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

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);
查看答案

微信扫一扫手机做题