So What are Transient and Volatile Modifiers???????

The Transient modifier applies to variables only and it is not stored as part of its object’s Persistent state. Transient variables are not serialized.

The Volatile modifier applies to variables only and it tells the compiler that the variable modified by volatile can be changed unexpectedly by other parts of the program.

You can see the full list of Java Interview Questions Here

If you have any questions or comments please email me at john@johnathanmarksmith.com



Published

03 June 2013

Tags