-->
当前位置:首页 > 题库

单选题:Which of the following best describes the use of the synchronize

Luz5年前 (2021-05-10)题库1320
Which of the following best describes the use of the synchronized keyword? @[B](2)

A. Allows two process to run in parallel but to communicate with each other
B. Ensures only one thread at a time may access a method or object
C. Ensures that two or more processes will start and end at the same time
D. Ensures that two or more Threads will start and end at the same time



A.Allows two process to run in parallel but to communicate with each other
B.Ensures only one thread at a time may access a method or object
C.Ensures that two or more processes will start and end at the same time
D.Ensures that two or more Threads will start and end at the same time


答案:B