Shared Tutorials
Tutorials Shared by the Internet Community
Advertisements
| Top Tutorials | New Tutorials | Submit | Login | Register |
Tutorial Basic 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: 4211
Total Votes: 17 votes
Average Rating: 3.47 out of 5
Category: JAVA/Core JAVA
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
Rating Detail
| Stars | Percentage | Total Vote |
|---|---|---|
![]() |
![]() ![]() 23.53% |
4 |
![]() ![]() |
![]() ![]() 17.65% |
3 |
![]() ![]() ![]() |
![]() ![]() 17.65% |
3 |
![]() ![]() ![]() ![]() |
![]() ![]() 11.76% |
2 |
![]() ![]() ![]() ![]() ![]() |
![]() ![]() 17.65% |
3 |





23.53%

17.65%

17.65%

11.76%

17.65%