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. pls tell me how to insert data in database .
View Tutorial          By: sankar at 2009-10-22 05:37:45

2. Typecasting proved very much helpful to me...esp.
View Tutorial          By: itan at 2010-05-04 01:30:24

3. Seriously very nice explanation.... Thank You
View Tutorial          By: Pulkit agrawal at 2012-03-20 10:28:10

4. thanks....good explanation...
View Tutorial          By: jiby at 2012-01-14 05:57:33

5. Hiii....i am using windows 8..jdk1.7.51 and netbea
View Tutorial          By: Pravin Kamble at 2014-05-03 07:00:12

6. very well to understand
View Tutorial          By: Siva Krishna N at 2007-02-16 23:06:07

7. can you send me comm.jar required for this project
View Tutorial          By: rahul at 2012-10-20 12:21:42

8. this is simple and informative.thanks
View Tutorial          By: amrita at 2011-11-12 14:32:58

9. Very nicely explained, especially the step-by-step
View Tutorial          By: Kaushik at 2012-09-20 04:14:21

10. The SAX Parser code has a problem for files of gre
View Tutorial          By: Mark Nelson at 2011-11-14 20:16:41