单选题Which will declare a method that forces a subclass to implement it? ()APublic double methoda();BStatic void methoda (double d1) {}CPublic native double methoda();DAbstract public void methoda();EProtected void methoda (double d1){}

题目
单选题
Which will declare a method that forces a subclass to implement it? ()
A

 Public double methoda();

B

 Static void methoda (double d1) {}

C

 Public native double methoda();

D

 Abstract public void methoda();

E

 Protected void methoda (double d1){}


相似考题
更多“Which will declare a method that forces a subclass to implem”相关问题
  • 第1题:

    Which will declare a method that is available to all members of the same package and can be referenced  without an instance of the class?()  

    • A、 Abstract public void methoda();
    • B、 Public abstract double methoda();
    • C、 Static void methoda(double d1){}
    • D、 Public native double methoda(){}
    • E、 Protected void methoda(double d1){}

    正确答案:C

  • 第2题:

    Which will declare a method that forces a subclass to implement it? () 

    • A、 Public double methoda();
    • B、 Static void methoda (double d1) {}
    • C、 Public native double methoda();
    • D、 Abstract public void methoda();
    • E、 Protected void methoda (double d1){}

    正确答案:D

  • 第3题:

    Which of the following is a reason why Bob, a technician, should install case fans in the front of acomputer case?()

    • A、It forces hot air out of the PC
    • B、The fan is easier to remove and clean
    • C、It forces cooler air into the power supply quickly
    • D、It forces cooler air across the motherboard

    正确答案:D

  • 第4题:

    public class NamedCounter {  private final String name;  private int count;  public NamedCounter(String name) { this.name = name; }  public String getName() { return name; }  public void increment() { coount++; }  public int getCount() { return count; } public void reset() { count = 0; } }  Which three changes should be made to adapt this class to be used safely by multiple threads? ()

    • A、 declare reset() using the synchronized keyword
    • B、 declare getName() using the synchronized keyword
    • C、 declare getCount() using the synchronized keyword
    • D、 declare the constructor using the synchronized keyword
    • E、 declare increment() using the synchronized keyword

    正确答案:A,C,E

  • 第5题:

    You create a Web Form that contains connected Web Parts. You write the following declaration in your Web Form. You need to ensure that your Web Part connection is valid. Which two actions should you perform? ()

    • A、Include a data source identified as "WebPartConnection1" on the Web Form.
    • B、Include a Web Part identified as "customerPart" on the Web Form.
    • C、Include a Web Part identified as "ordersPart" on the Web Form.
    • D、Ensure that you declare an interface named "IOrdersPart".
    • E、Ensure that you declare an interface named "ICustomerPart".
    • F、Ensure that each Web Part declares either a GetInterface or ProvideInterface method.

    正确答案:B,C

  • 第6题:

    单选题
    Which method of the ChildActionExtensions class calls a child action method and renders the result inline in the parent view?()
    A

    RenderPartial

    B

    Action

    C

    Render

    D

    RenderAction


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

  • 第7题:

    多选题
    Which three statements are true?()
    A

    A final method in class X can be abstract if and only if X is abstract.

    B

    A protected method in class X can be overridden by any subclass of X.

    C

    A private static method can be called only within other static methods in class X.

    D

    A non-static public final method in class X can be overridden in any subclass of X.

    E

    A public static method in class X can be called by a subclass of X without explicitly referencing the class X.

    F

    A method with the same signature as a private final method in class X can be implemented in a subclass of X.

    G

    A protected method in class X can be overridden by a subclass of X only if the subclass is in the same package as X.


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

  • 第8题:

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

    Local variables defined inside a method are destroyed when the method is exited.

    B

    Local variables are also called automatic variables.

    C

    Variables defined outside a method are created when the object is constructed.

    D

    A method parameter variable continues to exist for as long as the object is needed in which the method is defined.


    正确答案: C,A
    解析: 本题是讨论变量的类型及作用域。

  • 第9题:

    单选题
    Which will declare a method that forces a subclass to implement it? ()
    A

     Public double methoda();

    B

     Static void methoda (double d1) {}

    C

     Public native double methoda();

    D

     Abstract public void methoda();

    E

     Protected void methoda (double d1){}


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

  • 第10题:

    单选题
    Which will declare a method that is available to all members of the same package and be referenced without an instance of the class?()
    A

     abstract public void methoda ();

    B

     public abstract double inethoda ();

    C

     static void methoda (double dl) {}

    D

     public native double methoda () {}

    E

     protected void methoda (double dl) {}


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

  • 第11题:

    单选题
    Which of the following is a reason why Bob, a technician, should install case fans in the front of acomputer case?()
    A

    It forces hot air out of the PC

    B

    The fan is easier to remove and clean

    C

    It forces cooler air into the power supply quickly

    D

    It forces cooler air across the motherboard


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

  • 第12题:

    单选题
    You work as an application developer at Certkiller .com. You are currently in the process of creating a class that stores data about Certkiller .com’s customers. Certkiller .com customers are assigned unique identifiers and various characteristics that may include aliases, shipping instructions, and sales comments. These characteristics can change in both size and data type. You start by defining the Customer class as shown below: public class Customer { private int custID; private ArrayList attributes; public int CustomerID { get {return custID;} } public Customer (int CustomerID) { this.custID = CustomerID; this.attributes = new ArrayList (); } public void AddAttribute (object att) {  attributes.Add (att); } } You have to create the FindAttribute method for locating attributes in Customer objects no matter what the data type is.You need to ensure that the FindAttributemethod returns the attribute if found,and you also need to ensure type-safety when returning the attribute.What should you do?()
    A

     Use the following code to declare the FindAttribute method: public T FindAttribute (T att) {//Find attribute and return the value }

    B

     Use the following code to declare the FindAttribute method: public object FindAttribute (object att) {//Find attribute and return the value }

    C

     Use the following code to declare the FindAttribute method: public T FindAttribute  (T att) {//Find attribute and return the value }

    D

     Use the following code to declare the FindAttribute method: public string FindAttribute (string att) {//Find attribute and return the value }


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

  • 第13题:

    Which will declare a method that is available to all members of the same package and be referenced without an instance of the class?()

    • A、 abstract public void methoda ();
    • B、 public abstract double inethoda ();
    • C、 static void methoda (double dl) {}
    • D、 public native double methoda () {}
    • E、 protected void methoda (double dl) {}

    正确答案:C

  • 第14题:

    Which statements concerning the methods notify() and notifyAll() are true?  

    • A、Instances of class Thread have a method called notify().
    • B、A call to the method notify() will wake the thread that currently owns the monitor of the object.
    • C、The method notify() is synchronized.
    • D、The method notifyAll() is defined in class Thread.
    • E、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.

    正确答案:A,E

  • 第15题:

    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

  • 第16题:

    Which statement is true?()

    • A、A class’s finalize() method CANNOT be invoked explicitly.
    • B、super.finalize() is called implicitly by any overriding finalize() method.
    • C、The finalize() method for a given object is called no more than once by the garbage collector.
    • D、The order in which finalize() is called on two objects is based on the order in which the two objects became finalizable.

    正确答案:C

  • 第17题:

    单选题
    The center of flotation of a vessel is().
    A

    the center of volume of the immersed portion of the vessel

    B

    the center of gravity of the water plane

    C

    that point at which all the vertical downward forces of weight are considered to be concentrated

    D

    that point at which all the vertical upward forces of buoyancy are considered to be concentrated


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

  • 第18题:

    单选题
    Which statement is true?()
    A

    A class’s finalize() method CANNOT be invoked explicitly.

    B

    super.finalize() is called implicitly by any overriding finalize() method.

    C

    The finalize() method for a given object is called no more than once by the garbage collector.

    D

    The order in which finalize() is called on two objects is based on the order in which the two objects became finalizable.


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

  • 第19题:

    单选题
    The effect known as bank cushion acts in which of the following ways on a single-screw vessel proceeding along a narrow channel? ()
    A

    It forces the bow away from the bank

    B

    It forces the stern away from the bank

    C

    It forces the entire vessel away from the bank

    D

    It heels the vessel toward the bank


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

  • 第20题:

    单选题
    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
    解析: 暂无解析

  • 第21题:

    单选题
    Which will declare a method that is available to all members of the same package and can be referenced without an instance of the class?()
    A

     Abstract public void methoda();

    B

     Public abstract double methoda();

    C

     Static void methoda(double d1){}

    D

     Public native double methoda()  {}

    E

     Protected void methoda(double d1)  {}


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

  • 第22题:

    单选题
    You are creating a Windows Forms application by using the .NET Framework 3.5. The application requires a thread that accepts a single integer parameter.    You write the following code segment (Line numbers are included for reference only.) Thread myThread = new Thread(new ParameterizedThreadStart(DoWork)) ;  myThread.Start(100); You need to declare the method signature of the DoWork method.   Which method signature should you use?()
    A

    public void DoWork();

    B

    public void DoWork(int nCounter);

    C

    public void DoWork(object oCounter);

    D

    public void DoWork(Delegate oCounter);


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

  • 第23题:

    单选题
    Leg penetration to depths which require pullout forces greater than that which can be supplied by the buoyancy of the hull may exist in().
    A

    soft mud

    B

    sand

    C

    silt

    D

    soft to firm clays


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

  • 第24题:

    多选题
    Which statements concerning the methods notify() and notifyAll() are true?
    A

    Instances of class Thread have a method called notify().

    B

    A call to the method notify() will wake the thread that currently owns the monitor of the object.

    C

    The method notify() is synchronized.

    D

    The method notifyAll() is defined in class Thread.

    E

    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.


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