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

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

2090


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.

3317


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

2722


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

2023


Sun Certificatio details.

2078






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

3174


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

1072


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

2080


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

2265


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

3158