- What is volatile modifier in java
- it is not cached.
- it is also stored in main and not in cache.
- we tell JVM that this variables would used by many threads in the program. so please dont cache it. just read from the main memory.
- What is volatile modifier in java