Which method must be used to encode a URL passed as an argument to HttpServletResponse.sendRedirect when using URL rewriting for session tracking?()
第1题:
Given the Tag:
第2题:
Which statement is true if the doStartTag method returns EVAL_BODY_BUFFERED?()
第3题:
Which methods from the String and StringBuffer classes modify the object on which they are called?()
第4题:
Which three are true about servlet filters?()
第5题:
You are developing a custom-collection class.You need to create a method in your class. You need to ensure that the method you create in your class returns a type that is compatible with the Foreach statement. Which criterion should the method meet?()
第6题:
You are developing an application that receives events asynchronously.You create a WqlEventQuery instance to specify the events and event conditions to which the application must respond.You also create a ManagementEventWatcher instance to subscribe to events matching the query.You need to identify the other actions you must perform before the application can receive events asynchronously.Which two actions should you perform?()
第7题:
The method invoked by this function must be statie.
The function class must implement the Function interface.
The expression is NOT a valid EL expression for invoking a function.
The function must be declared in a web.xml file using the
The function class must have a method with the signature:Void bloof (java.lang.Strings)
第8题:
ServletResponse.encodeURL
HttpServletResponse.encodeURL
ServletResponse.encodeRedirectURL
HttpServletResponse.encodeRedirectURL
第9题:
The do After Body method is called.
The doEnd Tag method is NOT called.
The type attribute may be specified in the TLD
The do Start Tag Method must always return SKIP_BODY.
The TLD for this tag must NOT include a
第10题:
Instance variables are member variables of a class.
Instance variables are declared with the static keyword.
Local variables defined inside a method are created when the method is executed.
Local variables must be initialized before they are used.
第11题:
The tag handler must extend body Tag.
The do After Body method is NOT called.
The set Body Content method is called.
It is never legal to return EVAL_BODY_BUFFERED from do Start Tag.
第12题:
The hashCode method for a given class can be used to test for object equality and object inequality for that class.
The hashCode method is used by the java.util.SortedSet collection class to order theelements within that set.
The hashCode method for a given class can be used to test for object inequality, but NOT object equality, for that class.
The only important characteristic of the values returned by a hashCode method is that the distribution of values must follow a Gaussian distribution.
The hashCode method is used by the java.util.HashSet collection class to group the elements within that set into hash buckets for swift retrieval.
第13题:
Which statement is true if the do Start Tag method returns EVAL_BODY_BUFFERED?()
第14题:
Which method must be used to encode a URL passed as an argument to HttpServletResponse.sendRedirect when using URL rewriting for session tracking?()
第15题:
A developer wants too use EL to invoke a function using S{my:bloof(“foof”)}. Which is always true?()
第16题:
Given an EL function declared with:11.
第17题:
You are creating an assembly named Assembly1.Assembly1 contains a public method. The global cache contains a second assembly named Assembly2.You must ensure that the public method is only called from Assembly2.Which permission class should you use?()
第18题:
A filter must implement the destroy method.
A filter must implement the doFilter method.
A servlet may have multiple filters associated with it.
A servlet that is to have a filter applied to it must implement the javax.servlet.FilterChain interface.
A filter that is part of a filter chain passes control to the next filter in the chain by invoking the FilterChain.forward method.
第19题:
The tag handler must implement BodyTag.
The doAfterBody method is NOT called.
The setBodyContent method is called once.
It is never legal to return EVAL_BODY_BUFFERED from doStartTag.
第20题:
ServletResponse.encodeURL
HttpServletResponse.encodeURL
ServletResponse.encodeRedirectURL
HttpServletResponse.encodeRedirectURL
第21题:
Your filter class must implement an init method and a destroy method.
Your filter class must also implement javax.servlet.FilterChain.
When your filter chains to the next filter, it should pass the same arguments it received in its doFiltermethod.
The method that your filter invokes on the object it received that implements javax.servlet.FilterChaincan invoke either another filter or a servlet.
Your filter class must implement a doFilter method that takes, among other things, anHTTPServletRequest object and an HTTPServletResponse object.
第22题:
Apply the method list to an interface
Specify the default method list and apply it to the interface
Enable AAA
Define a method list
第23题:
The method must return a type of either IEnumerator or IEnumerable.
The method must return a type of IComparable.
The method must explicitly contain a collection.
The method must be the only iterator in the class.
第24题:
The function method must have the signature: public String spin().
The method must be mapped to the logical name spin in the web.xml file.
The function method must have the signature: public String spinIt().
The function method must have the signature public static String spin().
The function method must have the signature: public static String spinIt().
The function class must be named Spinner, and must be in the package com.example.