A Admin • 828.43K Points Coach Q. Which of the following is true about `synchronized` blocks? (A) They can only be used on static methods (B) They allow multiple threads to execute critical section simultaneously (C) They prevent race conditions (D) They are slower than unsynchronized blocks but offer no benefit Correct Answer - Option(C) Views: 6 Filed under category Java Hashtags: Java Multithreading Share Manage Tags
Discusssion
Login to discuss.