网友您好, 请在下方输入框内输入要搜索的题目:

题目内容 (请给出正确答案)
单选题
Which interface must a class implement to be informed of a session creation event?()
A

 javax.servlet.http.HttpSessionListener

B

 javax.servlet.http.HttpSessionBindingListener

C

 javax.servlet.http.HttpSessionCreationListener

D

 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” 相关考题
考题 You are developing a Windows Communication Foundation (WCF) service that contains the following service contract.[ServiceContract()]public interface IPaymentService{ [OperationContract()] void RecordPayments(Person person);}public class Person{ ... }public class Employee : Person{ ... }public class Customer : Person{ ... }You need to ensure that RecordPayments can correctly deserialize into an Employee or a Customer object.What should you do?()A. Add the following KnownType attribute to the Employee class and to the Customer class. [KnownType(GetType(Person))]B. Implement the IExtensibleDataObject interface in the Person class.C. Implement the IExtension(ofType(T)) interface in the Person class.D. Add the following KnownType attributes to the Person class. [KnownType(GetType(Employee))] [KnownType(GetType(Customer))]

考题 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

考题 You are creating a Windows Communication Foundation (WCF) service that responds using plain-old XML (POX).You have the following requirements: You must enable the /catalog.svc IItems operation to respond using the POX, JSON, or ATOM formats. You also must ensure that the same URL is used regardless of the result type. You must determine the response format by using the Accepts HTTP header.What should you do?()A、Implement the IChannelInitializer interface in the service class.B、Implement the System.Runtime.Serialization.IFormatterConverter interface in the service class.C、Set the BodyStyle parameter of the WebGet attribute on the operation to WebMessageBodyStyle.WrappedResponse.D、Set the retum type of the operation to System.ServiceModel.Channels.Message. Use the current WebOperationContext methods to return the data in the required format.

考题 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 so that instances of the class are notified after any object is addedto a session?()A、javax.servlet.http.HttpSessionListenerB、javax.servlet.http.HttpSessionValueListenerC、javax.servlet.http.HttpSessionBindingListenerD、javax.servlet.http.HttpSessionAttributeListener

考题 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.

考题 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 the two demonstrate an “is a” relationship?()A、 public interface Person {}  Public class Employee extends Person {}B、 public interface Shape {}  public interface Rectangle extends Shape {}C、 public interface Color {}  public class Shape { private Color color; }D、 public class Species {}  public class Animal { private Species species; }E、 interface Component {} Class Container implements Component {private Component [] children;

考题 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.

考题 You are developing a Web application to display products. Products are displayed on different pages on your Web site. You want to create a user control to manage the display of products. You need a default visual implementation of the UI of the user control. In addition, you need to provide developers with the flexibility to change the layout and controls of the UI. Which three actions should you perform? ()A、Apply the TemplateContainerAttribute to a property of type ITemplate. Pass the type of the template's naming container as the argument to the attribute.B、Apply the TemplateContainerAttribute to the user control's class declaration.C、Implement a property of type INamingContainer in the user control's code-behind class.D、Implement a property of type ITemplate in the user control's code-behind class.E、Define a new class that inherits from the ITemplate interface. Implement the InstantiateIn method of the ITemplate interface.

考题 You use Microsoft .NET Framework 4 to create a Windows Presentation Foundation (WPF) application. You add a ListBox control to the application. The ListBox control is data-bound to an instance of a custom collection class of the Product objects named ProductList. You need to ensure that changes to ProductList are automatically reflected in the ListBox control. What should you do? ()A、 Implement the INotifyPropertyChanged interface in the Product class.B、 Implement the IQueryableProduct interface in the ProductList class.C、 Extend the DependencyObject class in the Product class.D、Extend the ObservableCollectionProduct class in the ProductList class.

考题 多选题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)

考题 单选题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

考题 单选题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 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

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

考题 多选题You want to create a filter for your web application and your filter will implement javax.servlet.Filter. Which two statements are true?()AYour filter class must implement an init method and a destroy method.BYour filter class must also implement javax.servlet.FilterChain.CWhen your filter chains to the next filter, it should pass the same arguments it received in its doFiltermethod.DThe method that your filter invokes on the object it received that implements javax.servlet.FilterChaincan invoke either another filter or a servlet.EYour filter class must implement a doFilter method that takes, among other things, anHTTPServletRequest object and an HTTPServletResponse object.

考题 多选题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 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.

考题 多选题Given a class whose instances, when found in a collection of objects, are sorted by using the compareTo() method, which two statements are true?()AThe class implements java.lang.Comparable.BThe class implements java.util.Comparator.CThe interface used to implement sorting allows this class to define only one sort sequence.DThe interface used to implement sorting allows this class to define many different sort sequences.

考题 单选题You use Microsoft .NET Framework 4 to create a Windows Presentation Foundation (WPF) application. You add a ListBox control to the application. The ListBox control is data-bound to an instance of a custom collection class of the Product objects named ProductList. You need to ensure that changes to ProductList are automatically reflected in the ListBox control. What should you do? ()A Implement the INotifyPropertyChanged interface in the Product class.B Implement the IQueryableProduct interface in the ProductList class.C Extend the DependencyObject class in the Product class.D Extend the ObservableCollectionProduct class in the ProductList class.

考题 多选题You are developing a Web application to display products. Products are displayed on different pages on your Web site. You want to create a user control to manage the display of products. You need a default visual implementation of the UI of the user control. In addition, you need to provide developers with the flexibility to change the layout and controls of the UI. Which three actions should you perform?()AApply the TemplateContainerAttribute to a property of type ITemplate. Pass the type of the template's naming container as the argument to the attribute.BApply the TemplateContainerAttribute to the user control's class declaration.CImplement a property of type INamingContainer in the user control's code-behind class.DImplement a property of type ITemplate in the user control's code-behind class.EDefine a new class that inherits from the ITemplate interface. Implement the InstantiateIn method of the ITemplate interface.

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