A Admin • 828.43K Points Coach Q. Which of the following is true about the `volatile` keyword in Java? (A) It makes a variable read-only (B) It guarantees visibility of changes to variables across threads (C) It synchronizes a block of code (D) It locks the object for other threads Correct Answer - Option(B) Views: 8 Filed under category Java Hashtags: Java Multithreading Share Manage Tags
Discusssion
Login to discuss.