网友您好, 请在下方输入框内输入要搜索的题目:

题目内容 (请给出正确答案)
YouneedtostoreaJavalongprimitiveattribute,calledcustomerOID,intothesessionscope.Whichtwo codesnippetsallowyoutoinsertthisvalueintothesession?()

A.longcustomerOID=47L;session.setAttribute("customerOID",newLong(customerOID));

B.longcustomerOID=47L;session.setLongAttribute("customerOID",newLong(customerOID));

C.longcustomerOID=47L;session.setAttribute("customerOID",customerOID);

D.longcustomerOID=47L;session.setNumericAttribute("customerOID",newLong(customerOID));


参考答案

更多 “ YouneedtostoreaJavalongprimitiveattribute,calledcustomerOID,intothesessionscope.Whichtwo codesnippetsallowyoutoinsertthisvalueintothesession?() A.longcustomerOID=47L;session.setAttribute(customerOID,newLong(customerOID));B.longcustomerOID=47L;session.setLongAttribute(customerOID,newLong(customerOID));C.longcustomerOID=47L;session.setAttribute(customerOID,customerOID);D.longcustomerOID=47L;session.setNumericAttribute(customerOID,newLong(customerOID)); ” 相关考题