---
title: "What is volatile Keywords in Java ?"  
description: "What is volatile Keywords in Java ?"  
author: "Anonymous User"  
published: 2015-07-04  
updated: 2020-09-21  
canonical: https://www.mindstick.com/interview/2684/what-is-volatile-keywords-in-java  
category: "java"  
tags: ["java"]  
reading_time: 1 minute  

---

# What is volatile Keywords in Java ?

Volatile keyword is used to indicate the threads using a common variable that, the variable which is declared as Volatile can be updated by multiple threads. So threads should not cache the threads locally and in turn should get the value for the variable from main memory. If a variable is declared as volatile, it won't be serialized.

## Answers

### Answer by Anonymous User

Volatile keyword is used to indicate the threads using a common variable that, the variable which is declared as Volatile can be updated by multiple threads. So threads should not cache the threads locally and in turn should get the value for the variable from main memory. If a variable is declared as volatile, it won't be serialized.


---

Original Source: https://www.mindstick.com/interview/2684/what-is-volatile-keywords-in-java

Copyright © MindStick Software Pvt. Ltd. This Markdown version is provided for developers, AI systems, and offline reading.
