Froquiz
Home
Quizzes
Job Tracker
Senior Challenge
System Design
Get Certified
Blog
🇬🇧
en
Sign In
Start Quiz
🇬🇧
en
Sign In
Start Quiz
Loading...
Quiz Topics
1
2
3
4
5
6
7
8
9
10
01
/ 10
Why are Volatile variables not as secure as synchronized blocks?
Auto Skip
Report Issue
A.
`volatile` variables are used only in the `run()` method of the `Thread` class and are not related to other thread synchronization.
B.
`volatile` variables perform all the functions of `synchronized` blocks and are safer.
C.
`volatile` variables are used only in database operations and do not provide synchronization with threads.
D.
`volatile` variables only ensure that the variable is always read and written from main memory, but do not provide atomic updates and comprehensive synchronization.
Previous
Next