How to use transient variable in Java with Example
|Top Tutorials||New Tutorials||Submit||Login||Register|
Total Hits: 15035
Total Votes: 151 votes
Category: JAVA/Core JAVA
Submitted on: 2011-10-09 05:28:46
Submitted By: Javin Paul
Description:Some of java keyword are not very famous one of them is transient keyword which is used in Serialization process. This article explains key concept of transient variable in java. transient variable saves you from dangerous NotSerializableException if any of your member variable is not serializable and you have made class to implement serializable. it also gives you some control over serialization process by excluding some members from serialization. More detail...