Which statements concerning the methods notify() and notifyA

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

参考答案和解析
正确答案: D,B
解析: 暂无解析
如果没有搜索结果或未解决您的问题,请直接 联系老师 获取答案。
相似问题和答案

第1题:

Which of the following are valid methods of providing a router with information concerning thelocation of the RP? (Choose all that apply.)()

  • A、Statically defined RP
  • B、Bootstrap Router
  • C、Auto-RP
  • D、RP Discovery Protocol (RDP)
  • E、RP Helios
  • F、RPARP(RARP)

正确答案:A,B,C

第2题:

Which of the following are valid methods of providing a router with information concerning the location of the RP()

  • A、Statically defined RP
  • B、Bootstrap Router
  • C、Auto-RP
  • D、RP Discovery Protocol(RDP)
  • E、RP Helios
  • F、RPARP(RARP)

正确答案:A,B,C

第3题:

●Which of the following statements about object oriented database is not correct? (72) .

(72) A.Each object has a unique object identify 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 supereloss includes the attributes and methods at all subclasses


正确答案:B
【解析】译文:下列关于面向对象数据库的描述中,哪一个是错误的?
B.封装和继承是面向对象数据库的两个重要特征。

第4题:

Two devices on an Ethernet segment sent frames at the same time causing a collision. Which two statements are true?()

  • A、Both devices stop transmiting, wait a random period of time, verify the wire is idle, and re-transmit
  • B、The device with the lowest MAC address is permitted to retrannsmit first
  • C、The device with the lowest MAC address sends a jam signal to notify all other devices of the collision
  • D、Both devices send a jam signal to notify all other devices of the collision

正确答案:A,D

第5题:

Which statements are true concerning NAT? ()

  • A、 NAT provides 1 to manyaddress mapping.
  • B、 NAT provides 1 to 1 address mapping.
  • C、 NAT is only useful forTCP/UDP and ICMP traffic.
  • D、 NAT can be used for all IP traffic.

正确答案:B,D

第6题:

Which of the following statements concerning intellectual property is wrong?()

  • A、Intellectual property is an intangible creation
  • B、Intellectual property in ludes patents,trademarks,copyrights,etc.
  • C、Intellectual property is a visible creation
  • D、There are some agreement sconcerning intellectual property under the WTO

正确答案:C

第7题:

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

第8题:

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

第9题:

Which of these statements concerning the collection interfaces are true?()  

  • A、Set extends Collection.
  • B、All methods defined in Set are also defined in Collection.
  • C、List extends Collection.
  • D、All methods defined in List are also defined in Collection.
  • E、Map extends Collection.

正确答案:A,B,C

第10题:

Which two statements are true?()

  • A、It is possible for more than two threads to deadlock at once.
  • B、The JVM implementation guarantees that multiple threads cannot enter into a deadlocked state.
  • C、Deadlocked threads release once their sleep() method’s sleep duration has expired.
  • D、Deadlocking can occur only when the wait(), notify(), and notifyAll() methods are used incorrectly.
  • E、It is possible for a single-threaded application to deadlock if synchronized blocks are used incorrectly.
  • F、If a piece of code is capable of deadlocking, you cannot eliminate the possibility ofdeadlocking by insertinginvocations of Thread.yield().

正确答案:A,F

更多相关问题