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. This tutorial is very nice for beginners.
View Tutorial          By: Wakil Ahamad at 2009-02-07 05:58:31

2. please explain importance of java and explain it's
View Tutorial          By: sandhi.vijayanth reddy at 2012-10-01 16:30:54

3. First things first, you might want to use malloc(i
View Tutorial          By: leon at 2012-05-02 19:00:56

4. Till now, I have'nt done any certifications. I am
View Tutorial          By: Subhash at 2012-03-15 10:48:29

5. thanks bro it worked for me ....keep it up.
View Tutorial          By: azhar at 2010-12-27 00:44:36

6. thanks a lot it was really helpful...........for d
View Tutorial          By: Joshi Rocky at 2010-01-29 14:13:40

7. Nice Article....
View Tutorial          By: Vipin Joshi at 2008-04-13 15:35:42

8. where is the main class dear.................
View Tutorial          By: akhand at 2011-03-01 23:58:05

9. This tutorial is so simple, often we dont need to
View Tutorial          By: NIrjhar at 2011-12-12 03:29:52

10. Really nice tutorial for memset(), memcopy() and m
View Tutorial          By: Hitesh Kumar at 2012-09-03 09:16:32