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. I really thanks to you for providing wonderful inf
View Tutorial          By: Chandra Sekhar Puli at 2009-11-07 04:03:44

2. ok this is gud example to build an abstract class.
View Tutorial          By: ashish at 2011-12-01 06:22:32

3. ya,i changed tht to GSM modem but stil there is a
View Tutorial          By: rajesh at 2008-12-15 01:56:35

4. pls send me the brief description about jdbc conne
View Tutorial          By: vikas at 2011-08-09 07:07:53

5. hi iam new to java i need simple java programs pls
View Tutorial          By: naga at 2010-10-06 03:45:18

6. nice tutorial,but if provided with the complete ex
View Tutorial          By: Prasant Kumar Sahu at 2013-01-07 13:17:20

7. for me also The code gives the following exception
View Tutorial          By: ashitha at 2007-09-12 03:09:12

8. Sat Apr 23 10:44:14 IST 2011:Sender:*** time out a
View Tutorial          By: sasivarnan at 2011-04-23 01:17:18

9. Excellent!!!!!!!!!!

Tons of thanks

View Tutorial          By: Sara at 2009-06-03 05:38:59

10. It's very helpful to me... Thanks...
View Tutorial          By: Nicks Patel at 2010-03-24 23:37:04