The transient and volatile Modifiers

When an instance variable is declared as transient, then its value need not persist when an object is stored. For example:

class T { 
   transient int a; // will not persist 
   int b; // will persist 

The volatile variables can be changed unexpectedly by other parts of your program.  |  | Contact Us | Privacy Policy
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.