Mohan's JavaBook
Java Interview Questions
ContactUs :
Please send your Questions & Answers or Feedback to "mohan@javabook.org"
What is Volatile ?
when a variable is declared as volatile, it can be changed unexpectedly by other parts of the program.
It also tells the compiler that it must always use the master copy of the variable (this concept is used in
multi threading
).
Newer Post
Older Post
Home