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

Java认证考试

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

Which code snippet inserted at line 12 cause the client to redirect tohttp://www.example.com?()

  • A、 response.send Redirect (http://www.example.com):
  • B、 response.send Redirect (new URL (“http://www.example.com”));
  • C、 Request Dispatcher rd=  get Servlet Context (). Get Request Dispatcher (  http://www.example.com”)’  rd. forward (request. Response):
  • D、 Request Dispatch rd=  Get Servlet Context ().get Request Dispatcher(  New URL (http://www.example.com));  Rd. forward (request.response):
正确答案:A
答案解析:
进入题库查看解析

微信扫一扫手机做题