Which will declare a method that forces a subclass to implem

题目
单选题
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
解析: 暂无解析
如果没有搜索结果或未解决您的问题,请直接 联系老师 获取答案。
相似问题和答案

第1题:

For a floating vessel, the center of flotation is the point in the waterplane ______.

A.about which the vessel lists and trims

B.which coincides with the center of buoyancy

C.which, in the absence of external forces, is always vertically aligned with the center of gravity

D.which is shown in the hydrostatic tables as VCB


正确答案:A
对漂浮船,漂心是水线面上的一点,船舶绕该点横倾或纵倾。

第2题:

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

第3题:

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.


正确答案:D

第4题:

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

第5题:

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

第6题:

What are the elements with which a method is concerned?
There are six elements:
1.the nature of language;
2.the nature of language learning;
3.goals and objectives inteaching;
4.the type of syllabus to use;
5.the role of teachers,and instructional materials;
6.the techniques and procedures to use.

第7题:

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

第8题:

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

第9题:

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

第10题:

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

更多相关问题