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
参考答案和解析
正确答案:A,D
如果没有搜索结果或未解决您的问题,请直接 联系老师 获取答案。
相似问题和答案

第1题:

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

第2题:

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

第3题:

Which two are true?()

A.A finalizer may NOT be invoked explicitly.

B.The finalize method declared in class Object takes no action.

C.super.finalize()is called implicitly by any over riding finalize method.

D.The finalize method for a given objec twill be called no more than once by the garbage collector.

E.The order in which finalize will be called on two objects is based on the order in which the two objects became finalizable.


参考答案:B, D

第4题:

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

第5题:

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

第6题:

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 bri

C.show interfaces interface switchport

D.show interface interface trunk

E.show interfaces vlan


参考答案:C, D

第7题:

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

第8题:

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


参考答案:C

第9题:

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

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

正确答案:A,C

第10题:

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

更多相关问题