niusouti.com

Which two classes or interfaces provide a getSession method?()A、javax.servlet.http.HttpServletRequestB、javax.servlet.http.HttpSessionContextC、javax.servlet.http.HttpServletResponseD、javax.servlet.http.HttpSessionBindingEventE、javax.servlet.http.HttpSessio

题目

Which two classes or interfaces provide a getSession method?()

  • A、javax.servlet.http.HttpServletRequest
  • B、javax.servlet.http.HttpSessionContext
  • C、javax.servlet.http.HttpServletResponse
  • D、javax.servlet.http.HttpSessionBindingEvent
  • E、javax.servlet.http.HttpSessionAttributeEvent

相似考题
更多“Which two classes or interfaces provide a getSession method?()A、javax.servlet.http.HttpServletRequestB、javax.servlet.http.HttpSessionContextC、javax.servlet.http.HttpServletResponseD、javax.servlet.http.HttpSessionBindingEventE、javax.servlet.http.HttpSessio”相关问题
  • 第1题:

    Which two commands can be used to verify a trunk link configurationt status on a given cisco switch?()

    A.show interfaces interface

    B.show interfaces interface trunk

    C.show interfaces interface switchport

    D.show ip interface brief

    E.show interfaces vlan


    参考答案:B, C

  • 第2题:

    A developer wants to make a name attribute available to all servlets associated with a particular user,across multiple requests from that user, from the same browser instance. Which two provide this capability from within a tag handler?()

    • 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)

    正确答案:D,F

  • 第3题:

    Which two statements are true of login classes?()

    • A、Users can be members of multiple login classes.
    • B、Login classes define authorization parameters for a user.
    • C、There are five system-defined login classes.
    • D、Login class permission flags can be overridden for certain commands.

    正确答案:B,D

  • 第4题:

    Two switches are connected through a trunk link.which two commands show that there is a native VLAN mismatch on that link?()

    • A、show interfaces interface
    • B、show vlan brief
    • C、show interfaces interface switchport
    • D、show interface interface trunk
    • E、show interfaces vlan

    正确答案:C,D

  • 第5题:

    Which two commands can be used to verify a trunk link configurationt status on a given cisco switch?()

    • A、show interfaces interface
    • B、show interfaces interface trunk
    • C、show interfaces interface switchport
    • D、show ip interface brief
    • E、show interfaces vlan

    正确答案:B,C

  • 第6题:

    Which two interfaces provide the capability to store objects using a key-value pair?()

    • A、 Java.util.Map.
    • B、 Java.util.Set.
    • C、 Java.util.List.
    • D、 Java.util.StoredSet.
    • E、 Java.util.StoredMap.
    • F、 Java.util.Collection.

    正确答案:A,E

  • 第7题:

    Which statement is true?()

    • A、A class’s finalize() method CANNOT be invoked explicitly.
    • B、super.finalize() is called implicitly by any overriding finalize() method.
    • C、The finalize() method for a given object is called no more than once by the garbage collector.
    • D、The order in which finalize() is called on two objects is based on the order in which the two objects became finalizable.

    正确答案:C

  • 第8题:

    多选题
    You need to store elements in a collection that guarantees that no duplicates are stored. Which two interfaces provide that capability?()
    A

    Java.util.Map

    B

    Java.util.Set

    C

    Java.util.List

    D

    Java.util.StoredSet

    E

    Java.util.StoredMap

    F

    Java.util.Collection


    正确答案: D,C
    解析: 暂无解析

  • 第9题:

    多选题
    Two switches are connected through a trunk link.which two commands show that there is a native VLAN mismatch on that link?()
    A

    show interfaces interface

    B

    show vlan brief

    C

    show interfaces interface switchport

    D

    show interface interface trunk

    E

    show interfaces vlan


    正确答案: A,E
    解析: 暂无解析

  • 第10题:

    多选题
    Which two classes or interfaces provide a getSession method?()
    A

    javax.servlet.http.HttpServletRequest

    B

    javax.servlet.http.HttpSessionContext

    C

    javax.servlet.http.HttpsServletResponse

    D

    javax.servlet.http.HttpSessionBindingEvent

    E

    javax.servlet.http.HttpSessionAttributeEvent


    正确答案: A,C
    解析: 暂无解析

  • 第11题:

    单选题
    Which methods from the String and StringBuffer classes modify the object on which they are called?()
    A

    The charAt() method of the String class.

    B

    The toUpperCase() method of the String class.

    C

    The replace() method of the String class.

    D

    The reverse() method of the StringBuffer class.

    E

    The length() method of the StringBuffer class.


    正确答案: D
    解析: 暂无解析

  • 第12题:

    多选题
    Which two interfaces provide the capability to store objects using a key-value pair?()
    A

    Java.util.Map.

    B

    Java.util.Set.

    C

    Java.util.List.

    D

    Java.util.StoredSet.

    E

    Java.util.StoredMap.

    F

    Java.util.Collection.


    正确答案: B,E
    解析: 暂无解析

  • 第13题:

    Which two classes or interfaces provide a getSession method?()

    • A、 javax.servlet.http.HttpServletRequest
    • B、 javax.servlet.http.HttpSessionContext
    • C、 javax.servlet.http.HttpsServletResponse
    • D、 javax.servlet.http.HttpSessionBindingEvent
    • E、 javax.servlet.http.HttpSessionAttributeEvent

    正确答案:A,D

  • 第14题:

    Which two loopback types are supported for serial interfaces on Juniper devices?()

    • A、Local
    • B、Far End
    • C、Remote
    • D、Bidirectional

    正确答案:A,C

  • 第15题:

    Upon a user’s first visit to the website, which two operations are always performed when the getSession method is called with no arguments in a servlet?()

    • A、 All URLs returned by the server are rewritten.
    • B、 An HttpSession object is created if necessary.
    • C、 The user name and password of the user are checked.
    • D、 The session ID is stored in the HTTP response as a cookie.

    正确答案:B,D

  • 第16题:

    Which two commands can be used to verify a trunk link configuration status on a given cisco switch?()

    • A、show interfaces interface
    • B、show interfaces trunk
    • C、show interfaces switchport
    • D、show ip interface brief
    • E、show interfaces vlan

    正确答案:B,C

  • 第17题:

    Which methods from the String and StringBuffer classes modify the object on which they are called?()  

    • A、The charAt() method of the String class.
    • B、The toUpperCase() method of the String class.
    • C、The replace() method of the String class.
    • D、The reverse() method of the StringBuffer class.
    • E、The length() method of the StringBuffer class.

    正确答案:D

  • 第18题:

    You need to store elements in a collection that guarantees that no duplicates are stored. Which two interfaces provide that capability?()   

    • A、 Java.util.Map
    • B、 Java.util.Set
    • C、 Java.util.List
    • D、 Java.util.StoredSet
    • E、 Java.util.StoredMap
    • F、 Java.util.Collection

    正确答案:B,D

  • 第19题:

    多选题
    Which two commands can be used to verify a trunk link configuration status on a given cisco switch?()
    A

    show interfaces interface

    B

    show interfaces trunk

    C

    show interfaces switchport

    D

    show ip interface brief

    E

    show interfaces vlan


    正确答案: B,C
    解析: 暂无解析

  • 第20题:

    单选题
    Click the Exhibit button. Which statement is true about the classes and interfaces in the exhibit?()
    A

    Compilation will succeed for all classes and interfaces.

    B

    Compilation of class C will fail because of an error in line 2.

    C

    Compilation of class C will fail because of an error in line 6.

    D

    Compilation of class AImpl will fail because of an error in line 2.


    正确答案: B
    解析: 暂无解析

  • 第21题:

    单选题
    Which statement is true?()
    A

    A class’s finalize() method CANNOT be invoked explicitly.

    B

    super.finalize() is called implicitly by any overriding finalize() method.

    C

    The finalize() method for a given object is called no more than once by the garbage collector.

    D

    The order in which finalize() is called on two objects is based on the order in which the two objects became finalizable.


    正确答案: C
    解析: 暂无解析

  • 第22题:

    多选题
    Upon a user’s first visit to the website, which two operations are always performed when the getSession method is called with no arguments in a servlet?()
    A

    All URLs returned by the server are rewritten.

    B

    An HttpSession object is created if necessary.

    C

    The user name and password of the user are checked.

    D

    The session ID is stored in the HTTP response as a cookie.


    正确答案: C,D
    解析: 暂无解析

  • 第23题:

    多选题
    Which two commands can be used to verify a trunk link configurationt status on a given cisco switch?()
    A

    show interfaces interface

    B

    show interfaces interface trunk

    C

    show interfaces interface switchport

    D

    show ip interface brief

    E

    show interfaces vlan


    正确答案: E,A
    解析: 暂无解析