Comment on Tutorial - Transient vs Volatile modifiers in Java By Reema sen



Comment Added by : oldman

Comment Added at : 2011-09-24 12:32:33

Comment on Tutorial : Transient vs Volatile modifiers in Java By Reema sen
i thnk exampleThread example is wrong - like billgates says.
the TestValue instance variable used by the two threads are from diffrernt objects. So, 'volatile' or not - they will always refer to two different variables - and hence not be in sync.


View Tutorial



Subscribe to Tutorials

Related Tutorials

Program using concept of byte long short and int in java

Update contents of a file within a jar file

Tomcat and httpd configured in port 8080 and 80

Java File

Java String

Count number of vowels, consonants and digits in a String in Java

Reverse a number in Java

Student marks calculation program in Java

Handling Fractions in Java

Calculate gross salary in Java

Calculate average sale of the week in Java

Vector in Java - Sample Program

MultiLevel Inheritance sample in Java

Multiple Inheritance sample in Java

Java program using Method Overriding

Archived Comments

1. query:sorting date wise,and diplaying only resent
View Tutorial          By: ramakanth at 2011-08-23 06:49:02

2. Hi
Thankyou for your code. Its good.

View Tutorial          By: Rajeshkumar at 2010-01-29 22:34:17

3. I need Structs full notes with examples
View Tutorial          By: Thomas at 2012-10-24 11:18:11

4. i need some simple java programs
View Tutorial          By: ramya at 2009-11-24 04:25:07

5. Hi sir just send me the code sir .... i am interes
View Tutorial          By: maruthi at 2013-10-30 05:14:15

6. how to code for images hitting in jsp like googl
View Tutorial          By: Kumaravel at 2014-08-06 11:23:08

7. Thank you so much. You made my day. God bless you
View Tutorial          By: Gautam at 2012-09-18 16:24:19

8. class Foo implements Runnable{


View Tutorial          By: DeeNKHAN at 2013-03-02 06:54:13

9. example required
View Tutorial          By: revathy at 2009-09-03 01:53:04

10. THANX :)
View Tutorial          By: Saurabh at 2012-01-02 16:13:06