1.

Which statement is true?

A. A static method cannot be synchronized.
B. If a class has synchronized code, multiple threads can still access the nonsynchronized code.
C. Variables can be protected from concurrent access problems by marking them with the synchronized keyword.
D. When a thread sleeps, it releases its locks.
Answer» C. Variables can be protected from concurrent access problems by marking them with the synchronized keyword.


Discussion

No Comment Found