单选题Which will declare the 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 foid methoda ():E protected void methoda (double d1) {}

单选题
Which will declare the 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 foid methoda ():

E

 protected void methoda (double d1) {}


参考解析

解析: 暂无解析

相关考题:

Which of the following statements about object oriented databse is not correct?A. Each object has a unique object identity in the system.B.Encapsulation and inheritance are two important features of object oriented databasE.C.A subclass can inherit the attributes and methods of all its superclasses.D.A subclass includes the attributes and methods of all its subclasses.

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.

For a floating vessel, the center of flotation is the point in the waterplane ______.A.about which the vessel lists and trimsB.which coincides with the center of buoyancyC.which, in the absence of external forces, is always vertically aligned with the center of gravityD.which is shown in the hydrostatic tables as VCB

What are the elements with which a method is concerned?

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){}

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) {}

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

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 PCB、The fan is easier to remove and cleanC、It forces cooler air into the power supply quicklyD、It forces cooler air across the motherboard

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.

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 keywordB、 declare getName() using the synchronized keywordC、 declare getCount() using the synchronized keywordD、 declare the constructor using the synchronized keywordE、 declare increment() using the synchronized keyword

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.

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.

单选题The center of flotation of a vessel is().Athe center of volume of the immersed portion of the vesselBthe center of gravity of the water planeCthat point at which all the vertical downward forces of weight are considered to be concentratedDthat point at which all the vertical upward forces of buoyancy are considered to be concentrated

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

单选题Which statement is true?()AA class’s finalize() method CANNOT be invoked explicitly.Bsuper.finalize() is called implicitly by any overriding finalize() method.CThe finalize() method for a given object is called no more than once by the garbage collector.DThe order in which finalize() is called on two objects is based on the order in which the two objects became finalizable.

多选题Which three statements are true?()AA final method in class X can be abstract if and only if X is abstract.BA protected method in class X can be overridden by any subclass of X.CA private static method can be called only within other static methods in class X.DA non-static public final method in class X can be overridden in any subclass of X.EA public static method in class X can be called by a subclass of X without explicitly referencing the class X.FA method with the same signature as a private final method in class X can be implemented in a subclass of X.GA protected method in class X can be overridden by a subclass of X only if the subclass is in the same package as X.

单选题The effect known as bank cushion acts in which of the following ways on a single-screw vessel proceeding along a narrow channel? ()AIt forces the bow away from the bankBIt forces the stern away from the bankCIt forces the entire vessel away from the bankDIt heels the vessel toward the bank

多选题Which of the following statements about variables and scope are true?()ALocal variables defined inside a method are destroyed when the method is exited.BLocal variables are also called automatic variables.CVariables defined outside a method are created when the object is constructed.DA method parameter variable continues to exist for as long as the object is needed in which the method is defined.

单选题Which methods from the String and StringBuffer classes modify the object on which they are called?()AThe charAt() method of the String class.BThe toUpperCase() method of the String class.CThe replace() method of the String class.DThe reverse() method of the StringBuffer class.EThe length() method of the StringBuffer class.

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

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

单选题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?()Apublic void DoWork();Bpublic void DoWork(int nCounter);Cpublic void DoWork(object oCounter);Dpublic void DoWork(Delegate oCounter);

单选题Which of the following is a reason why Bob, a technician, should install case fans in the front of acomputer case?()AIt forces hot air out of the PCBThe fan is easier to remove and cleanCIt forces cooler air into the power supply quicklyDIt forces cooler air across the motherboard

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

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

多选题Which statements concerning the methods notify() and notifyAll() are true?AInstances of class Thread have a method called notify().BA call to the method notify() will wake the thread that currently owns the monitor of the object.CThe method notify() is synchronized.DThe method notifyAll() is defined in class Thread.EWhen 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.