欢迎来到求知题库网 求知题库官网
logo
全部科目 > Java认证考试 > SCDCD(310-081)

单项选择题


What is the result?()

    A. foo has the value””
    B. foo has the value null.
    C. An exception is thrown.
    D. The code will not compile.

点击查看答案

相关考题

  • 单项选择题
    Whichthe statementistrue?()

    A. The Error class is a Runtime Exception.
    B. No exceptions are subclasses of Error.
    C. Any statement that may throw an Error must be enclosed in a try block.
    D. any statement that may throw an Exception must be enclosed in a try block.
    E. Any statement that may throw an Runtime Exception must be enclosed in a try block.

  • 单项选择题
    Which code snippet inserted at line 12 cause the client to redirect tohttp://www.example.com?()

    A. response.send Redirect (http://www.example.com):
    B. response.send Redirect (new URL (“http://www.example.com”));
    C. Request Dispatcher rd=  get Servlet Context (). Get Request Dispatcher (  http://www.example.com”)’  rd. forward (request. Response):
    D. Request Dispatch rd=  Get Servlet Context ().get Request Dispatcher(  New URL (http://www.example.com));  Rd. forward (request.response):

  • 单项选择题
    GivenanHttpSessionsession.AServletRequestrequest.AndaServletContextcontext.WhichretrievesaURLto/WEBINF/myconfig.xmlwithinawebapplication?()

    A. session.get Resource (“/WEB-INF/myconfig.xml”)
    B. request.get Resource (“/WEB-INF/myconfig.xml”)
    C. context.get Resource (“/WEB-INF/myconfig.xml”)
    D. get Class ().get Resource (“/WEB-INF/myconfig.xml”)

微信小程序免费搜题
微信扫一扫,加关注免费搜题

微信扫一扫,加关注免费搜题

微信扫一扫,加关注免费搜题

微信扫一扫,加关注免费搜题