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. Fantastic work guys
View Tutorial          By: wizard at 2012-09-22 04:18:59

2. send c++ programs on every topic of c++
View Tutorial          By: mandeep at 2009-07-11 00:50:23

3. hi..dud.......
please help me in my proj

View Tutorial          By: amar usakoyal at 2010-05-25 03:31:16

4. can this code communicate with other pc that using
View Tutorial          By: lolo at 2011-10-28 09:14:30

5. Hello,
this is good example, but that is on

View Tutorial          By: Zubair at 2011-11-10 20:46:39

6. I can not understand left shift operater ,i am a f
View Tutorial          By: umar at 2012-01-31 12:28:11

7. Plz show me how to use main method reccurssively p
View Tutorial          By: Jyoti Bankar at 2011-07-14 10:31:53

8. #include<stdio.h>
void main(){

View Tutorial          By: niru at 2012-07-21 07:26:27

9. Bitwise OR is a pipe (|), not a logical NOT (!)
View Tutorial          By: Martijn at 2011-06-21 10:49:29

10. I liked it.
View Tutorial          By: savitha at 2011-05-06 02:23:46