session.setAttribute(String name,Object value)这个语句是
A. 设置name值
B. 将对应的键值对存入session对象
C. 设置value值
D. 设置session对象为null
给定如下所示的Java Servlet代码片段,用户在浏览器地址栏中键入正确的请求URL并回车后,在控制台上显示的结果是( )。public void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException{ System.out.println(“get”);} public void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException{ System.out.println(“post”);} protected void service(HttpServletRequest req, HttpSergvletResponse resp) throws ServletException, IOException{ System.out.println(“service”);}
A. get
B. post
C. service
D. service get