void run()
public void run()
public void start()
void run(int priority)
public void run(int priority)
public void start(int priority)
第1题:
Which statements concerning the methods notify() and notifyAll() are true?
第2题:
Which method must be defined by a class implementing the java.lang.Runnable interface? ()
第3题:
Which methods from the String and StringBuffer classes modify the object on which they are called?()
第4题:
Given an EL function declared with:11.
第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题:
void run()
public void run()
public void start()
void run(int priority)
public void run(int priority)
public void start(int priority)
第7题:
Local variables defined inside a method are destroyed when the method is exited.
Local variables are also called automatic variables.
Variables defined outside a method are created when the object is constructed.
A method parameter variable continues to exist for as long as the object is needed in which the method is defined.
第8题:
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.
第9题:
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.
第10题:
CallbackBehavior(ConcurrencyMode=ConcurencyMode.Reentrant)
CallbackBehavior(ConcurrencyMode=ConcurrencyMode.Multiple)
ServiceBehavior(ConcurrencyMode=ConcurrencyMode.Reentrant)
ServiceBehavior(ConcurrencyMode=ConcurrencyMode.Multiple)
第11题:
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.
第12题:
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.
第13题:
What is a limitation of implementing uRPF?()
第14题:
It is desirable that a certain method within a certain class can only be accessed by classes that are defined within the same package as the class of the method. How can such restrictions be enforced?()
第15题:
A developer wants too use EL to invoke a function using S{my:bloof(“foof”)}. Which is always true?()
第16题:
You are implementing an ASP. NET MVC 2 Web application. You add a controller named Company Controller. You need to modify the application to handle the URL path /company/info. Which two actions should you perform?()
第17题:
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)
第18题:
Mark the method with the keyword public.
Mark the method with the keyword protected.
Mark the method with the keyword private.
Mark the method with the keyword package.
Do not mark the method with any accessibility modifiers.
第19题:
The charAt() method of the String class.
The toUpperCase() method of the String class.
The replace() method of the String class.
The reverse() method of the StringBuffer class.
The length() method of the StringBuffer class.
第20题:
A
The echo tag handler must define the setAttribute (String key, String value) method
The
The class implementing the echo tag handler must implement the javax.sevlet.jsp.tagext.IterationTag interface
The class implementing the echo tag handler must implement the javax.sevlet.jsp.tagext.DynamicAttributes interface
第21题:
Line 33 must be called within a try block.
The exception thrown by method1 in class a is not required to be caught.
The method declared on line 31 must be declared to throw a RuntimeException.
On line 5 of class a, the call to method2 of class b does not need to be placed in a try/catch block.
第22题:
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.
第23题:
MPLS LDP must be enabled.
BGP routing protocol must be running.
Named access-lists must be configured.
Symmetrical routing is required.
Domain name must be defined
第24题:
Instances of class Thread have a method called notify().
A call to the method notify() will wake the thread that currently owns the monitor of the object.
The method notify() is synchronized.
The method notifyAll() is defined in class Thread.
When there is more than one thread waiting to obtain the monitor of an object, there is no way to be sure which thread will be notified by the notify() method.