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)

相似考题
更多“Which method must”相关问题
  • 第1题:

    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 TLD
    • D、 The do Start Tag Method must always return SKIP_BODY.
    • E、 The TLD for this tag must NOT include a  tag.

    正确答案:C

  • 第2题:

    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.

    正确答案:C

  • 第3题:

    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.

    正确答案:D

  • 第4题:

    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.

    正确答案:A,B,C

  • 第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?()

    • 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.

    正确答案:A

  • 第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?()

    • 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.

    正确答案:A,B

  • 第7题:

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


    正确答案: C
    解析: 暂无解析

  • 第8题:

    单选题
    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.encodeURL

    B

    HttpServletResponse.encodeURL

    C

    ServletResponse.encodeRedirectURL

    D

    HttpServletResponse.encodeRedirectURL


    正确答案: C
    解析: 暂无解析

  • 第9题:

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

    D

     The do Start Tag Method must always return SKIP_BODY.

    E

     The TLD for this tag must NOT include a  tag.


    正确答案: C
    解析: 暂无解析

  • 第10题:

    多选题
    Which of the following statements about variables and their scopes are true? ()
    A

    Instance variables are member variables of a class.

    B

    Instance variables are declared with the static keyword.

    C

    Local variables defined inside a method are created when the method is executed.

    D

    Local variables must be initialized before they are used.


    正确答案: B,D
    解析: 类中有几种变量,分别是:局部变量(英文可以为:local/automatic/temporary/stack variable)是定义在方法里的变量;实例变量(英文为:instance variable)是在方法外而在类声明内定义的变量,有时也叫成员变量;类变量(英文为:class variable)是用关键字static声明的实例变量,他们的生存期分别是:局部变量在定义该变量的方法被调用时被创建,而在该方法退出后被撤销;实例变量在使用new Xxxx()创建该类的实例时被创建,而其生存期和该类的实例对象的生存期相同;类变量在该类被加载时被创建,不一定要用new Xxxx()创建,所有该类的实例对象共享该类变量,其生存期是类的生存期。任何变量在使用前都必须初始化,但是需要指出的是局部变量必须显式初始化,而实例变量不必,原始类型的实例变量在该类的构造方法被调用时为它分配的缺省的值,整型是0,布尔型是false,而浮点型是0.0f,引用类型(类类型)的实例变量的缺省值是null(没有进行实际的初始化,对它的使用将引起NullPointException),类变量的规则和实例变量一样,不同的是类变量的初始化是在类被加载时。

  • 第11题:

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


    正确答案: D
    解析: 暂无解析

  • 第12题:

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


    正确答案: E,B
    解析: 暂无解析

  • 第13题:

    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.

    正确答案:C

  • 第14题:

    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.encodeURL
    • B、HttpServletResponse.encodeURL
    • C、ServletResponse.encodeRedirectURL
    • D、HttpServletResponse.encodeRedirectURL

    正确答案:D

  • 第15题:

    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)

    正确答案:A

  • 第16题:

    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.

    正确答案:E,F

  • 第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?()

    • A、GacIdentity Permission
    • B、Publisher Identity Permission
    • C、Data Protection Permission
    • D、Strong Name Identity Permission

    正确答案:D

  • 第18题:

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


    正确答案: E,A
    解析: 暂无解析

  • 第19题:

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


    正确答案: D
    解析: 暂无解析

  • 第20题:

    单选题
    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.encodeURL

    B

     HttpServletResponse.encodeURL

    C

     ServletResponse.encodeRedirectURL

    D

     HttpServletResponse.encodeRedirectURL


    正确答案: C
    解析: 暂无解析

  • 第21题:

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


    正确答案: C,B
    解析: 暂无解析

  • 第22题:

    多选题
    Which three configuration steps must be completed for a Cisco router in order to enable local AAA login authentication?() (Choose three.)
    A

    Apply the method list to an interface

    B

    Specify the default method list and apply it to the interface

    C

    Enable AAA

    D

    Define a method list


    正确答案: C,D
    解析: 暂无解析

  • 第23题:

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


    正确答案: C
    解析: 暂无解析

  • 第24题:

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


    正确答案: E,F
    解析: 暂无解析