100+ câu trắc nghiệm Phát triển ứng dụng Web có đáp án - Phần 5

Lệnh nào sau đây thiết lập giá trị cho thuộc tính của đối tượng session? HttpSession s=request.getSession(true);Integer visitors = new Integer(0); s.setAttribute("counter", visitors); s.getAt

18/27

Lệnh nào sau đây thiết lập giá trị cho thuộc tính của đối tượng session?

HttpSession s=request.getSession(true);

Integer visitors = new Integer(0);

s.setAttribute("counter", visitors);

s.getAttribute("counter");

Lệnh 1

Lệnh 2

Lệnh 3

Lệnh 4

Giải thích

Chọn đáp án C