itgle.com

Given:10.publicvoidservice(ServletRequestrequest,11.ServletResponseresponse){12.ServletInputStreamsis=13.//insertcodehere14.}Whichretrievesthebinaryinputstreamonline13?()A.request.getWriter();B.request.getReader();C.request.getInputStream();D.request.getR

题目
Given:10.publicvoidservice(ServletRequestrequest,11.ServletResponseresponse){12.ServletInputStreamsis=13.//insertcodehere14.}Whichretrievesthebinaryinputstreamonline13?()

A.request.getWriter();

B.request.getReader();

C.request.getInputStream();

D.request.getResourceAsStream();


相似考题
更多“Given:10.publicvoidservice(ServletRequestrequest,11.ServletResponseresponse){12.ServletInputStreamsis=13.//insertcodehere14.}Whichretrievesthebinaryinputstreamonline13?() ”相关问题
  • 第1题:

    Given:11.staticclassA{12.voidprocess()throwsException{thrownewException();}13.}14.staticclassBextendsA{15.voidprocess(){System.out.println("B");}16.}17.publicstaticvoidmain(String[]args){18.Aa=newB();19.a.process();20.}Whatistheresult?()

    A.Compilationfailsbecauseofanerrorinline19.

    B.Anexceptionisthrownatruntime.

    C.B

    D.Compilationfailsbecauseofanerrorinline18.

    E.Compilationfailsbecauseofanerrorinline15.

    F.Thecoderunswithnooutput.


    参考答案:A

  • 第2题:

    [A] set [B] exact [C] given [D] placed


    正确答案:A

  • 第3题:

    【单选题】在一个Filter中,处理filter业务的是()方法

    A.dealFilter (ServletRequestrequest,ServletResponse response,FilterChain chain)

    B.dealFilter (ServletRequestrequest,ServletResponse response)

    C.doFilter (ServletRequestrequest,ServletResponse response, FilterChain chain)

    D.doFilter (ServletRequestrequest,ServletResponse response)


    不允许对同一个页面进行多个filter过滤

  • 第4题:

    Given11.publicinterfaceStatus{12./*insertcodehere*/intMY_VALUE=10;13.}Whichthreearevalidonline12?()

    A.final

    B.static

    C.native

    D.public

    E.private


    参考答案:A, B, D

  • 第5题:

    在一个Filter中,处理filter业务的是()方法。

    A.dealFilter (ServletRequest request,ServletResponse response,FilterChain chain)

    B.dealFilter (ServletRequest request,ServletResponse response)

    C.doFilter (ServletRequest request,ServletResponse response, FilterChain chain)

    D.doFilter (ServletRequest request,ServletResponse response)


    doFilter(ServletRequest reg,ServletResponse res,FilterChain chain)