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

多选题
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 statements about object oriented database is not correct? (72) .(72) A.Each object has a unique object identify in the systemB.Encapsulation and inheritance are two important features of object oriented databaseC.A subclass can inherit the attributes and methods of all its superclassesD.A supereloss includes the attributes and methods at all subclasses

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.

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 RPB、Bootstrap RouterC、Auto-RPD、RP Discovery Protocol (RDP)E、RP HeliosF、RPARP(RARP)

Which of the following statements concerning intellectual property is wrong?()A、Intellectual property is an intangible creationB、Intellectual property in ludes patents,trademarks,copyrights,etc.C、Intellectual property is a visible creationD、There are some agreement sconcerning intellectual property under the WTO

Which of the following are valid methods of providing a router with information concerning the location of the RP()A、Statically defined RPB、Bootstrap RouterC、Auto-RPD、RP Discovery Protocol(RDP)E、RP HeliosF、RPARP(RARP)

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

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.

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-transmitB、The device with the lowest MAC address is permitted to retrannsmit firstC、The device with the lowest MAC address sends a jam signal to notify all other devices of the collisionD、Both devices send a jam signal to notify all other devices of the collision

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

单选题Which of the following statements concerning energy is correct?()AEnergy can be created or destroyedBEnergy may not be transformedCThe total quantity of energy in the universe is always the sameDNone of the above

多选题Concerning the figure below, if a =b, which of the following statements must be true? (Indicate all such statements.)Ac=dBl and k are parallelCm and l are perpendicular

单选题Which of the following statements concerning cargo is correct?()ACargoes are any type of goods transported by any type of shipsBCargoes are goods transported in bulkCCargoes usually include goods transported in bulk and in containersDCargoes are usually packaged in containers

单选题Which of the following statements concerning butterfly valves is correct?()ASpecial tools are required for lapping or grindingBIt is impossible to throttle flow with a butterfly valveCTo close the valve, it is only necessary to turn the handle a quarter of a turnDThe butterfly valve should never be used in a freshwater system

多选题Which of the following are valid methods of providing a router with information concerning thelocation of the RP? (Choose all that apply.)()AStatically defined RPBBootstrap RouterCAuto-RPDRP Discovery Protocol (RDP)ERP HeliosFRPARP(RARP)

单选题Which of the statements listed concerning heat transfer is correct?()AHeat is always transferred at a constant rateBHeat transfer rate increases as temperature difference increasesCThe rate of heat transfer is not affected by temperature differenceDThe high temperature region is known as a heat sink

单选题Which of the following statements is true concerning any evaporator?()AHigh conductivity of the distillate indicates distillate salinity is excessiveBIncreasing the absolute pressure of the shell will increase the distillers capacityCMesh separators are used in evaporators to filter the distillateDReducing the brine density will reduce the heat lost overboard

单选题Which of the following statements concerning fire-tube boilers is correct?()ACombustion gases flow through the tubesBFlames impinge on the tubesCCombustion occurs in the tubesDWater flows through the tubes

单选题Which of the following statements is true concerning the cetane number of diesel fuel?()AThe cetane number affects the amount of injection lagBThe cetane number is an indication of the fuels viscosityCIgnition lag is reduced with fuels having a high cetane numberDThe cetane number is of little significance in the combustion process

多选题Which two of statements are true?()AIt is possible to synchronize static methods.BWhen a thread has yielded as a result of yield(), it releases its locks.CWhen a thread is sleeping as a result of sleep(), it releases its locks.DThe Object.wait() method can be invoked only from a synchronized context.EThe Thread.sleep() method can be invoked only from a synchronized context.FWhen the thread scheduler receives a notify() request, and notifies a thread, that thread immediately releases its lock.

多选题Which of these statements concerning the collection interfaces are true?()ASet extends Collection.BAll methods defined in Set are also defined in Collection.CList extends Collection.DAll methods defined in List are also defined in Collection.EMap extends Collection.

单选题Which of the listed statements is correct concerning the starting of centrifugal pumps?()AThey should always be started with the discharge valve closedBThey should always be started with the discharge valve openedCA priming pump is always required to flood the impeller suctionDThey should always be started with the sealing line valves closed

单选题Which of the following statements is correct concerning the “flash point ” of a liquid?()AIt is lower than the ignition temperatureBIt is the temperature at which a substance will spontaneously igniteCIt is the temperature at which a substance, when ignited, will continue to bumDIt is the temperature at which the released vapors will fall within the explosive range

单选题Which of the following statements concerning fuel atomization in a diesel engine cylinder is correct?()AThe greater the atomization, the greater the penetrationBThe greater the atomization, the less the penetrationCThe degree of atomization has nothing to do with the degree of penetrationDAtomization and penetration are one and the same

多选题Which two statements are true?()AIt is possible for more than two threads to deadlock at once.BThe JVM implementation guarantees that multiple threads cannot enter into a deadlocked state.CDeadlocked threads release once their sleep() method’s sleep duration has expired.DDeadlocking can occur only when the wait(), notify(), and notifyAll() methods are used incorrectly.EIt is possible for a single-threaded application to deadlock if synchronized blocks are used incorrectly.FIf a piece of code is capable of deadlocking, you cannot eliminate the possibility ofdeadlocking by insertinginvocations of Thread.yield().

单选题Which of the following statements is correct concerning the viscosity of lubricating oil?()AViscosity will increase as temperature increasesBViscosity is a measure of a fluid s internal resistance to flowCViscosity will decrease as temperature decreasesDViscosity is not dependent on temperature

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

多选题Which of the following are valid methods of providing a router with information concerning the location of the RP()AStatically defined RPBBootstrap RouterCAuto-RPDRP Discovery Protocol(RDP)ERP HeliosFRPARP(RARP)