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. hi I am getting error while running this program a
View Tutorial          By: sampada at 2012-04-18 07:45:19

2. Hello, Can you please send me the complete code to
View Tutorial          By: koksingh at 2008-01-15 00:22:40

3. Very Helpful.
View Tutorial          By: nfahem at 2012-05-09 10:50:29

4. If the database server goes down, should the conne
View Tutorial          By: Naveen Gowd at 2012-02-02 07:17:38

5. This is the coding that I wanted...
This is

View Tutorial          By: Damith at 2012-05-16 17:26:10

6. Sir , I am doing B.Tech . I want to know more abou
View Tutorial          By: Rakesh yadav at 2011-01-18 22:23:22

7. programming for java is excelent
View Tutorial          By: roldan at 2010-07-19 00:22:52

8. Doesn't the getline() on line 14 read "once u
View Tutorial          By: poo at 2011-02-22 00:32:44

9. wow! thats nice, java program can read and write t
View Tutorial          By: Mutare at 2011-02-25 22:58:09

10. Great help
View Tutorial          By: Rajeshvar at 2009-11-04 08:43:09