What is volatile and transient variables in Java
Advertisements
| Top Tutorials | New Tutorials | Submit | Login | Register |
Tutorial Detail
What is volatile and transient variables in Java
transient and volatile are two different but less used variables in Java. There are many differences between these two like: Transient variable is usehttp://javarevisited.blogspot.com/2012/03/difference-between-transient-and.html
Total Hits: 4789
Total Votes: 23 votes
Category: JAVA/Core JAVA
Submitted on: 2012-06-23 04:07:47
Submitted By: Javin Paul
Description:
transient and volatile are two different but less used variables in Java. There are many differences between these two like:Transient variable is used to make the variable out of synchronization. Volatile variable is used when the variable is changing
it's state continuously
transient variables can not be serialized. Volatile variables may change with the affect of other one More detail...
Rating Detail
| Stars | Percentage | Total Vote |
|---|---|---|
![]() |
![]() ![]() 17.39% |
4 |
![]() ![]() |
![]() ![]() 13.04% |
3 |
![]() ![]() ![]() |
![]() ![]() 13.04% |
3 |
![]() ![]() ![]() ![]() |
![]() ![]() 8.7% |
2 |
![]() ![]() ![]() ![]() ![]() |
![]() ![]() 39.13% |
9 |





17.39%

13.04%

13.04%

8.7%

39.13%