What does the article mainly talked about?
A.The web in particular has opened up a host of opportunities for overindulgence.
B.Drug addictions and non-drug habits share the same neural pathways.
C.People can become addicted to potentially anything you do.
D.New technologies have revealed some unsuspected personality problems.
第1题
A.Compilationsucceedsand4isprinted.
B.Compilation……………isprinted.
C.Anerroronline9causecompilationtofail.
D.Anerroronline14causecompilationtofail.
E.Compilationsucceedsbutanexceptionisthrownatline9.
第2题
A.privatevoidsetVar(inta,floatc,intb){}
B.protectedvoidsetVar(inta,intb,floatc){}
C.publicintsetVar(inta,floatc,intb){returna:}
D.publicintsetVar(inta,intb,floatc){returna:}
E.protectedfloatsetVar(inta,intb,floatc){returnc:}
第3题
A.CreateanHttpSessionAttributeListenerclassandimplementtheattributeDeletedmethodandlogthe attributenameusingthegetNamemethodontheeventobject.
B.CreateanHttpSessionAttributeListenerclassandimplementtheattributeRemovedmethodandlogthe attributenameusingthegetNamemethodontheeventobject.
C.CreateanSessionAttributeListenerclassandimplementtheattributeRemovedmethodandlogthe attributenameusingthegetAttributeNamemethodontheeventobject.
D.CreateanSessionAttributeListenerclassandimplementtheattributeDeletedmethodandlogthe attributenameusingthegetAttributeNamemethodontheeventobject.
第4题
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));
第5题
A.AnIllegalStateExceptionisthrownatruntime.
B.AnInvalidSessionExceptionisthrownatruntime.
C.Thestring"value=null"appearsintheresponsestream.
D.Thestring"value=myAttributeValue"appearsintheresponsestream.
第6题
A.pageContext.setAttribute("name",theValue)
B.pageContext.setAttribute("name",getSession())
C.pageContext.getRequest().setAttribute("name",theValue)
D.pageContext.getSession().setAttribute("name",theValue)
E.pageContext.setAttribute("name",theValue,PageContext.PAGE_SCOPE)
F.pageContext.setAttribute("name",theValue,PageContext.SESSION_SCOPE)
第7题
A.AnexceptionisthrownatruntimebySourceServlet.
B.AnexceptionisthrownatruntimebyDestinationServlet.
C.Only"hellofromdest"appearsintheresponseoutputstream.
D.Both"hellofromsource"and"hellofromdest"appearintheresponseoutputstream.
第9题
A.Yourfilterclassmustimplementaninitmethodandadestroymethod.
B.Yourfilterclassmustalsoimplementjavax.servlet.FilterChain.
C.Whenyourfilterchainstothenextfilter,itshouldpassthesameargumentsitreceivedinitsdoFiltermethod.
D.Themethodthatyourfilterinvokesontheobjectitreceivedthatimplementsjavax.servlet.FilterChaincaninvokeeitheranotherfilteroraservlet.
E.YourfilterclassmustimplementadoFiltermethodthattakes,amongotherthings,anHTTPServletRequestobjectandanHTTPServletResponseobject.
第10题
A.IncludealistenerdirectiveinaJSPpage
B.configurealistenerintheTLDfileusingthe
C.Includea
D.configurealistenerintheapplicationdeploymentdescriptor,usingthe
E.IncludeaclassimplementingServletContextListeneraspartofthewebapplicationdeploymen
为了保护您的账号安全,请在“上学吧”公众号进行验证,点击“官网服务”-“账号验证”后输入验证码“”完成验证,验证成功后方可继续查看答案!