transient keyword in java
- 17th Aug 2017
- 0
- 3552
- how to use transient keyword in java importance of transient keyword in java significance of transient keyword in java transient keyword in java when to use transient keyword in java why do we need transient keyword in java
The “transient” keyword can be applied to member variables of a class to indicate that the member variable should not be serialized when the containing class instance is serialized. So transient fields will not be persisted when the object is serialized. class InterestExample{ int principle; int rateOfInterest; int time; […]