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. Good introduction to J2ME..thanks for sharing this
View Tutorial          By: Som at 2010-11-13 00:03:53

2. its useful code.
but i want to write in a f

View Tutorial          By: SARWAR at 2011-08-02 06:26:37

3. here is one more inner class example
public

View Tutorial          By: shahalam shaikh at 2012-02-13 21:08:30

4. Cool! Downloading the whole file with the HttpCon
View Tutorial          By: Luddite at 2010-06-26 12:26:26

5. Your solution is really helped me. Thanks for your
View Tutorial          By: Rajakumar at 2010-05-31 06:05:53

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

7. i get this error too.
: Parent: child proce

View Tutorial          By: Anon at 2009-02-25 08:30:58

8. nice tutorial man !
View Tutorial          By: yash at 2012-11-10 05:08:31

9. can u plz send me the source code for employee sal
View Tutorial          By: prudhvi at 2013-01-27 13:47:12

10. To "need help":

String s

View Tutorial          By: Mike at 2010-10-14 20:09:31