网友您好, 请在下方输入框内输入要搜索的题目:
题目内容
(请给出正确答案)
Which method must be defined by a class implementing the java.lang.Runnable interface? ()
- A、 void run()
- B、 public void run()
- C、 public void start()
- D、 void run(int priority)
- E、 public void run(int priority)
- F、 public void start(int priority)
参考答案
更多 “Which method must be defined by a class implementing the java.lang.Runnable interface? () A、 void run()B、 public void run()C、 public void start()D、 void run(int priority)E、 public void run(int priority)F、 public void start(int priority)” 相关考题
考题
You are writing a method that accepts a string parameter named message.Your method must break the message parameter into individual lines of text and pass each line to a second method named Process.Which code segment should you use?()A.B.C.D.
考题
Click the Exhibit button. Given:Which statement is true if a TestException is thrown on line 3 of class B? ()
A.Line 33 must be called within a try block.B.The exception thrown by method1 in class A is not required to be caught.C.The method declared on line 31 must be declared to throw a RuntimeException.D.On line 5 of class A, the call to method2 of class B does not need to be placed in a try/catch block.
考题
Which of the following are true of both OSPFv2 and OSPFv3?()A、The method of choosing an OSPF router IDB、Verification checks that must be validated before two routers can become OSPF neighborsC、Support for route tagsD、Support for multiple instances per inter face
考题
Which two statements are true about the hashCode method?()A、 The hashCode method for a given class can be used to test for object equality and object inequality for that class.B、 The hashCode method is used by the java.util.SortedSet collection class to order theelements within that set.C、 The hashCode method for a given class can be used to test for object inequality, but NOT object equality, for that class.D、 The only important characteristic of the values returned by a hashCode method is that the distribution of values must follow a Gaussian distribution.E、 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.
考题
Given the Tag: Assuming the tag referenced by my Tags: get Advice uses the Classic event model, which is true?()A、 The do After Body method is called.B、 The doEnd Tag method is NOT called.C、 The type attribute may be specified in the TLDD、 The do Start Tag Method must always return SKIP_BODY.E、 The TLD for this tag must NOT include a tag.
考题
Which statement is true if the do Start Tag method returns EVAL_BODY_BUFFERED?()A、 The tag handler must extend body Tag.B、 The do After Body method is NOT called.C、 The set Body Content method is called.D、 It is never legal to return EVAL_BODY_BUFFERED from do Start Tag.
考题
Which statement is true if the doStartTag method returns EVAL_BODY_BUFFERED?()A、The tag handler must implement BodyTag.B、The doAfterBody method is NOT called.C、The setBodyContent method is called once.D、It is never legal to return EVAL_BODY_BUFFERED from doStartTag.
考题
Which method must be used to encode a URL passed as an argument to HttpServletResponse.sendRedirect when using URL rewriting for session tracking?()A、ServletResponse.encodeURLB、HttpServletResponse.encodeURLC、ServletResponse.encodeRedirectURLD、HttpServletResponse.encodeRedirectURL
考题
Which methods from the String and StringBuffer classes modify the object on which they are called?() A、The charAt() method of the String class.B、The toUpperCase() method of the String class.C、The replace() method of the String class.D、The reverse() method of the StringBuffer class.E、The length() method of the StringBuffer class.
考题
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.
考题
Given an EL function declared with:11. 12.spin 13.com.example.Spinner 14. 15.java.lang.String spinIt() 16. 17. Which two are true?()A、The function method must have the signature: public String spin().B、The method must be mapped to the logical name "spin" in the web.xml file.C、The function method must have the signature: public String spinIt().D、The function method must have the signature public static String spin().E、The function method must have the signature: public static String spinIt().F、The function class must be named Spinner, and must be in the package com.example.
考题
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?()A、The method must return a type of either IEnumerator or IEnumerable.B、The method must return a type of IComparable.C、The method must explicitly contain a collection.D、The method must be the only iterator in the class.
考题
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?()A、GacIdentity PermissionB、Publisher Identity PermissionC、Data Protection PermissionD、Strong Name Identity Permission
考题
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?()A、Start listening for events by calling the Start method of the ManagementEventWatcher.B、Set up a listener for events by using the EventArrived event of the ManagementEventWatcher.C、Use the WaitForNextEvent method of the ManagementEventWatcher to wait for the events.D、Create an event handler class that has a method that receives an ObjectReadyEventArgs parameter.E、Set up a listener for events by using the Stopped event of the ManagementEventWatcher.
考题
多选题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 statement is true if the doStartTag method returns EVAL_BODY_BUFFERED?()A
The tag handler must implement BodyTag.B
The doAfterBody method is NOT called.C
The setBodyContent method is called once.D
It is never legal to return EVAL_BODY_BUFFERED from doStartTag.
考题
单选题Which method must be used to encode a URL passed as an argument to HttpServletResponse.sendRedirect when using URL rewriting for session tracking?()A
ServletResponse.encodeURLB
HttpServletResponse.encodeURLC
ServletResponse.encodeRedirectURLD
HttpServletResponse.encodeRedirectURL
考题
单选题Which method must be used to encode a URL passed as an argument to HttpServletResponse.sendRedirect when using URL rewriting for session tracking?()A
ServletResponse.encodeURLB
HttpServletResponse.encodeURLC
ServletResponse.encodeRedirectURLD
HttpServletResponse.encodeRedirectURL
考题
单选题Given the Tag: Assuming the tag referenced by my Tags: get Advice uses the Classic event model, which is true?()A
The do After Body method is called.B
The doEnd Tag method is NOT called.C
The type attribute may be specified in the TLDD
The do Start Tag Method must always return SKIP_BODY.E
The TLD for this tag must NOT include a tag.
考题
多选题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.
考题
多选题Which of the following statements about variables and their scopes are true? ()AInstance variables are member variables of a class.BInstance variables are declared with the static keyword.CLocal variables defined inside a method are created when the method is executed.DLocal variables must be initialized before they are used.
考题
多选题Which three configuration steps must be completed for a Cisco router in order to enable local AAA login authentication?() (Choose three.)AApply the method list to an interfaceBSpecify the default method list and apply it to the interfaceCEnable AAADDefine a method list
考题
单选题Which statement is true if the do Start Tag method returns EVAL_BODY_BUFFERED?()A
The tag handler must extend body Tag.B
The do After Body method is NOT called.C
The set Body Content method is called.D
It is never legal to return EVAL_BODY_BUFFERED from do Start Tag.
考题
单选题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?()A
The method must return a type of either IEnumerator or IEnumerable.B
The method must return a type of IComparable.C
The method must explicitly contain a collection.D
The method must be the only iterator in the class.
考题
多选题Which two statements are true about the hashCode method?()AThe hashCode method for a given class can be used to test for object equality and object inequality for that class.BThe hashCode method is used by the java.util.SortedSet collection class to order theelements within that set.CThe hashCode method for a given class can be used to test for object inequality, but NOT object equality, for that class.DThe only important characteristic of the values returned by a hashCode method is that the distribution of values must follow a Gaussian distribution.EThe hashCode method is used by the java.util.HashSet collection class to group the elements within that set into hash buckets for swift retrieval.
考题
多选题Given an EL function declared with:11. 12.spin 13.com.example.Spinner 14. 15.java.lang.String spinIt() 16. 17. Which two are true?()AThe function method must have the signature: public String spin().BThe method must be mapped to the logical name spin in the web.xml file.CThe function method must have the signature: public String spinIt().DThe function method must have the signature public static String spin().EThe function method must have the signature: public static String spinIt().FThe function class must be named Spinner, and must be in the package com.example.
热门标签
最新试卷