How-to articles, tricks, and solutions about TRANSIENT

Why does Java have transient fields?

In Java, the transient keyword is used to indicate that a field should not be serialized when an object is persisted to storage or when an object is transferred over a network.