Question
What is the use of Volatile Keyword?
Answer
Volatile is a declaration that a variable can be accessed by multiple threads and hence shouldn’t be cached.
📲 Practice Offline on Mobile: Download the free QA Automation & SDET Prep app on Google Play & App Store.