|
|
Java Objects |
You use thetransientkeyword to indicate to the the Java virtual machine that the indicated variable is not part of the persistent state of the object. At this time, the Java virtual machine ignores thetransientmarker. Future releases of the Java system will use thetransientmarker to implement various object archiving functions.Like other variable modifiers in the Java system, you use
transientin a class or instance variable declaration like thisThis statement declares an integer variable namedclass TransientExample { transient int hobo; . . . }hobothat is not part of the persistent state of the TransientExample class.
|
|
Table of Contents |