给定一个Servlet的代码片段如下:Public void doGet(HttpServletRequest request,HttpServletResponse response) throw
10 查阅
给定一个Servlet的代码片段如下:Public void doGet(HttpServletRequest request,HttpServletResponse response) throw ServletException,IOException{____________________________________out.println(“hi kitty!”);out.close();}运行该Servlet时输出“hi kitty!“,则应在此Servlet的两眼一下画线处填入的代码是()
A.PrintWriter out=request.getWriter();
B.PrintWriter out=response.getWriter();
C.OutputStream out=response.getOutputStream();
D.OutputStream out=request.getOutputStream();
参考答案: