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

Java认证考试

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

You need to store a Java long primitive attribute, called customerOID, into the session scope. Which two code snippets allow you to insert this value into the session?()

  • A、long customerOID = 47L;session.setAttribute("customerOID", new Long(customerOID));
  • B、long customerOID = 47L;session.setLongAttribute("customerOID", new Long(customerOID));
  • C、long customerOID = 47L;session.setAttribute("customerOID", customerOID);
  • D、long customerOID = 47L;session.setNumericAttribute("customerOID", new Long(customerOID));
正确答案:A,C
答案解析:
进入题库查看解析

微信扫一扫手机做题