单选题Which interface must a class implement to be informed of a session creation event?()A javax.servlet.http.HttpSessionListenerB javax.servlet.http.HttpSessionBindingListenerC javax.servlet.http.HttpSessionCreationListenerD javax.servlet.http.HttpSessionActivationListener

单选题Which interface must a class implement to be informed of a session creation event?()A  javax.servlet.http.HttpSessionListenerB  javax.servlet.http.HttpSessionBindingListenerC  javax.servlet.http.HttpSessionCreationListenerD  javax.servlet.http.HttpSessionActivationListener


相关考题:

Given a class whose instances, when found in a collection of objects, are sorted by using the compareTo()method, which two statements are true?() A.The class implements java.lang.Comparable.B.The class implements java.util.Comparator.C.The interface used to implement sorting allows this class to define only one sort sequence.D.The interface used to implement sorting allows this class to define many different sort sequences.

A custom JSP tag must be able to support an arbitrary number of attributes whose names are unknown when the tag class is designed.  Which two are true? ()A、 A  element in the echo tag LTD must have the value JSPB、 The echo tag handler must define the setAttribute (String key, String value) methodC、 The true element must appear in the echo tag TLDD、 The class implementing the echo tag handler must implement the javax.sevlet.jsp.tagext.IterationTag interfaceE、 The class implementing the echo tag handler must implement the javax.sevlet.jsp.tagext.DynamicAttributes interface

Your web application requires the adding and deleting of many session attributes during a complex usecase. A bug report has come in that indicates that an important session attribute is being deleted too soonand a NullPointerException is being thrown several interactions after the fact. You have decided to create asession event listener that will log when attributes are being deleted so you can track down when theattribute is erroneously being deleted. Which listener class will accomplish this debugging goal?()A、Create an HttpSessionAttributeListener class and implement the attributeDeleted method and log the attribute name using the getName method on the event object.B、Create an HttpSessionAttributeListener class and implement the attributeRemoved method and log the attribute name using the getName method on the event object.C、Create an SessionAttributeListener class and implement the attributeRemoved method and log the attribute name using the getAttributeName method on the event object.D、Create an SessionAttributeListener class and implement the attributeDeleted method and log the attribute name using the getAttributeName method on the event object.

Which interface must a class implement to be informed of a session creation event?()A、 javax.servlet.http.HttpSessionListenerB、 javax.servlet.http.HttpSessionBindingListenerC、 javax.servlet.http.HttpSessionCreationListenerD、 javax.servlet.http.HttpSessionActivationListener

In your web application,you need to execute a block of code whenever the session object is first created. Which design will accomplish this goal?()A、Create an HttpSessionListener class and implement the sessionInitialized method with that block ofcode.B、Create an HttpSessionActivationListener class and implement the sessionCreated method with thatblock of code.C、Create a Filter class, call the getSession(false) method, and if the result was null, then execute that block of code.D、Create an HttpSessionListener class and implement the sessionCreated method with that block of code.

Voice quality is bad due to high delay and jitter on a link. Which two actions will improve the quality  of voice calls?()A、Increase the queue size of the voice class.B、Guarantee bandwidth during congestion to the voice class with a bandwidth command.C、Increase the tx-ring of the egress interface.D、Implement LLQ for the voice class.E、Decrease the rx-ring of the egress interface.F、Decrease the queue size of the voice class.

A system is being designed with many LPARs which will be clients of dual VIO Servers. The VIO Servers must be redundant so that, in the event of scheduled maintenance, the clients do not need to be shut down.  Which of these strategies could be used to ensure that the client LPARs continue to be able to use the network in the event of a VIO Server being shut down?()A、Implement PowerHA SystemMirror on both VIO servers.B、Configure Etherchannel between the client LPARs and the two VIO serversC、Configure Network Interface Backup between the two VIO servers and use each VIO server to access the network.D、Implement Shared Ethernet Adapter failover and have all client partitions access the network through the shared adapters.

Which interface must a session attribute implement if it needs to be notified when a web container persistsa session?()A、javax.servlet.http.HttpSessionListenerB、javax.servlet.http.HttpSessionBindingListenerC、javax.servlet.http.HttpSessionAttributeListenerD、javax.servlet.http.HttpSessionActivationListener

Which statements about inheritance are true?()         A、 In Java programming language only allows single inheritance.B、 In Java programming language allows a class to implement only one interface.C、 In Java programming language a class cannot extend a class and implement a interface together.D、 In Java programming language single inheritance makes code more reliable.

Given a class whose instances, when found in a collection of objects, are sorted by using the compareTo() method, which two statements are true?()A、The class implements java.lang.Comparable.B、The class implements java.util.Comparator.C、The interface used to implement sorting allows this class to define only one sort sequence.D、The interface used to implement sorting allows this class to define many different sort sequences.

A developer wants too use EL to invoke a function using S{my:bloof(“foof”)}. Which is always true?()A、 The method invoked by this function must be statie.B、 The function class must implement the Function interface.C、 The expression is NOT a valid EL expression for invoking a function.D、 The function must be declared in a web.xml file using the  element.E、 The function class must have a method with the signature:Void bloof (java.lang.Strings)

Which three are true about servlet filters?()A、A filter must implement the destroy method.B、A filter must implement the doFilter method.C、A servlet may have multiple filters associated with it.D、A servlet that is to have a filter applied to it must implement the javax.servlet.FilterChain interface.E、A filter that is part of a filter chain passes control to the next filter in the chain by invoking the FilterChain.forward method.

Which interface must a class implement so that instances of the class are notified after any object is added to a session? ()A、 javax.servlet.http.HttpSessionListenerB、 javax.servlet.http.HttpSessionValueListenerC、 javax.servlet.http.HttpSessionBindingListenerD、 javax.servlet.http.HttpSessionAttributeListener

You want to create a filter for your web application and your filter will implement javax.servlet.Filter. Which two statements are true?()A、Your filter class must implement an init method and a destroy method.B、Your filter class must also implement javax.servlet.FilterChain.C、When your filter chains to the next filter, it should pass the same arguments it received in its doFiltermethod.D、The method that your filter invokes on the object it received that implements javax.servlet.FilterChaincan invoke either another filter or a servlet.E、Your filter class must implement a doFilter method that takes, among other things, anHTTPServletRequest object and an HTTPServletResponse object.

Which class provides paging functionality for data-bound controls that implement the IPageableItemContainer interface?()A、DataPagingFieldB、DataPagerCollectionC、DataPagerD、DataPaging

You are developing a data contract for a Windows Communication Foundation (WCF) service. The data in the data contract must participate in round trips. Strict schema validity is not required. You need to ensure that the contract is forward-compatible and allows new data members to be added to it. Which interface should you implement in the data contract class?()A、ICommunicationObjectB、IExtensionC、IExtensibleObjectD、IExtensibleDataObject

多选题Which three are true about servlet filters?()AA filter must implement the destroy method.BA filter must implement the doFilter method.CA servlet may have multiple filters associated with it.DA servlet that is to have a filter applied to it must implement the javax.servlet.FilterChain interface.EA filter that is part of a filter chain passes control to the next filter in the chain by invoking the FilterChain.forward method.

单选题A developer wants too use EL to invoke a function using S{my:bloof(“foof”)}. Which is always true?()A The method invoked by this function must be statie.B The function class must implement the Function interface.C The expression is NOT a valid EL expression for invoking a function.D The function must be declared in a web.xml file using the  element.E The function class must have a method with the signature:Void bloof (java.lang.Strings)

单选题You are developing a data contract for a Windows Communication Foundation (WCF) service. The data in the data contract must participate in round trips. Strict schema validity is not required. You need to ensure that the contract is forward-compatible and allows new data members to be added to it. Which interface should you implement in the data contract class?()AICommunicationObjectBIExtensionCIExtensibleObjectDIExtensibleDataObject

单选题Which interface must a class implement so that instances of the class are notified after any object is added to a session? ()A javax.servlet.http.HttpSessionListenerB javax.servlet.http.HttpSessionValueListenerC javax.servlet.http.HttpSessionBindingListenerD javax.servlet.http.HttpSessionAttributeListener

多选题A custom JSP tag must be able to support an arbitrary number of attributes whose names are unknown when the tag class is designed.  Which two are true? ()AA  element in the echo tag LTD must have the value JSPBThe echo tag handler must define the setAttribute (String key, String value) methodCThe true element must appear in the echo tag TLDDThe class implementing the echo tag handler must implement the javax.sevlet.jsp.tagext.IterationTag interfaceEThe class implementing the echo tag handler must implement the javax.sevlet.jsp.tagext.DynamicAttributes interface

单选题Which interface must a class implement to be informed of a session creation event?()A javax.servlet.http.HttpSessionListenerB javax.servlet.http.HttpSessionBindingListenerC javax.servlet.http.HttpSessionCreationListenerD javax.servlet.http.HttpSessionActivationListener

单选题In your web application,you need to execute a block of code whenever the session object is first created. Which design will accomplish this goal?()ACreate an HttpSessionListener class and implement the sessionInitialized method with that block ofcode.BCreate an HttpSessionActivationListener class and implement the sessionCreated method with thatblock of code.CCreate a Filter class, call the getSession(false) method, and if the result was null, then execute that block of code.DCreate an HttpSessionListener class and implement the sessionCreated method with that block of code.

单选题Which class provides paging functionality for data-bound controls that implement the IPageableItemContainer interface?()ADataPagingFieldBDataPagerCollectionCDataPagerDDataPaging

多选题Which statements about inheritance are true?()AIn Java programming language only allows single inheritance.BIn Java programming language allows a class to implement only one interface.CIn Java programming language a class cannot extend a class and implement a interface together.DIn Java programming language single inheritance makes code more reliable.

单选题Your web application requires the adding and deleting of many session attributes during a complex usecase. A bug report has come in that indicates that an important session attribute is being deleted too soonand a NullPointerException is being thrown several interactions after the fact. You have decided to create asession event listener that will log when attributes are being deleted so you can track down when theattribute is erroneously being deleted. Which listener class will accomplish this debugging goal?()ACreate an HttpSessionAttributeListener class and implement the attributeDeleted method and log the attribute name using the getName method on the event object.BCreate an HttpSessionAttributeListener class and implement the attributeRemoved method and log the attribute name using the getName method on the event object.CCreate an SessionAttributeListener class and implement the attributeRemoved method and log the attribute name using the getAttributeName method on the event object.DCreate an SessionAttributeListener class and implement the attributeDeleted method and log the attribute name using the getAttributeName method on the event object.

单选题Which interface must a session attribute implement if it needs to be notified when a web container persistsa session?()Ajavax.servlet.http.HttpSessionListenerBjavax.servlet.http.HttpSessionBindingListenerCjavax.servlet.http.HttpSessionAttributeListenerDjavax.servlet.http.HttpSessionActivationListener

单选题Which interface must a class implement so that instances of the class are notified after any object is addedto a session?()Ajavax.servlet.http.HttpSessionListenerBjavax.servlet.http.HttpSessionValueListenerCjavax.servlet.http.HttpSessionBindingListenerDjavax.servlet.http.HttpSessionAttributeListener