Why Volatile?
How Compiler come to know about external event changeed d
variable or through program instruction it is changed? for
volatile variable?

Answer Posted / gourav kumar

volatile is actually a keyword which is used in java. when
it is used before a variable then it tells the value of the
variable which is being modified by different threads.

the value of the variable will not be cached thread locally
all the read and write operation is done from direct to the
main memory.

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Sun Certificatio details.

2234


sir now i am pursuing BCA from DEC or UGC approved university pls tell me that i can apply its certificat in govt. jobs.

2274


Which attribute definitions is used to dynamically assign ‘PROTECTED’ and ‘MDT ON’ attributes for CustName?

1259


HI Any one want brain dump Please mail me.I have genuine dumps by just reading that you can pass exam.Just mail exam code I will provide dump. Mail me:ajithkumar.jain@yahoo.com

2892


i want to write scjp 1.6 exam in august/september. iam from bangalore. any one who sells scjp 1.6 vocher can contact me in my mail id b.surendra85@gmail.com. the vocher cost should be around 4500-5000.

3482






Do any of you have SCJP 6.0 certification voucher valid till Aug 2010?

2194


plese forward scjp 1.6 dumps to my mail pleaseeeeeee siddu.eld@gmail.com

3339


32. Policy Enforcement Federation is configured in which of the following components? a. Identity Manager b. Service Gateway c. Access Manager d. Directory Server

2256


What is the diffrent between Blade server and normal Sun fire Server

3355


What is the procedure to install the crital patch/package on the SVM ( root mirroring ).

2447