Significance of "transient" keyword.- The 'transient' keyword is used within the object's member that need not be serialized.
- If you deserialize the object, you will get the default value for transient variable.
- All the variables in the object by default converted to persistent state.
- If the variable is declared as 'transient', then it will not be persisted.
|