YouneedtostoreaJavalongprimitiveattribute,calledcustomerOID,intothesessionscope.Whichtwo codesnippetsallowyoutoinsertthisvalueintothesession?()A.longcustomerOID=47L;session.setAttribute("customerOID",newLong(customerOID));B.longcustomerOID=47L;session.set

题目
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));


相似考题