Get Even More Visitors To Your Blog, Upgrade To A Business Listing >>

Difference between transient and volatile keyword in Java? example

Difference Between Transient And Volatile Keyword In Java? Example
Surprisingly "Difference between transient and volatile keyword in Java" has asked many times on various java interviews. volatile and transient are two completely different keywords from different areas of Java programming language. the transient keyword is used during serialization of Java object while volatile is related to the visibility of variables modified by multiple threads during concurrent programming. The only similarity between volatile and transient is that they are less used or uncommon keywords and not as popular as public, static, or final.


This post first appeared on Javarevisited: Blog About Java Programmin, please read the originial post: here

Share the post

Difference between transient and volatile keyword in Java? example

×

Subscribe to Javarevisited: Blog About Java Programmin

Get updates delivered right to your inbox!

Thank you for your subscription

×