ALERT

[FREE DEMO] Deploy Your Enterprise Cloud in Minutes

Transient

Definition - What does Transient mean?

In computer programming, in Java specifically, transient is a keyword that is used to indicate that a variable should not be serialized. By default, all variables in an object can be serialized and therefore become persistent, but if a specific variable does not require persistence for any reason, the transient keyword can be used to mark that variable so that it is not serialized when the code is compiled.

Techopedia explains Transient

The transient keyword prevents a variable from becoming persistent. The latter means that a variable is turned into a stream of bytes and then stored in a file. This process is called serialization and is the default behavior for all variables in an object. Serialization is mostly relevant for network programming because an object that needs to be transmitted over a network needs to be converted into a series of bytes so that it can be sent in pieces; because of this every class and interface must be serializable by default. But if there is no requirement for network transport, the transient keyword can be used to mark a variable for exclusion when serialization takes place. This may save some computing resources and a tiny bit of processing time.

This definition was written in the context of Programming

Techopedia Deals

Connect with us

Techopedia on Linkedin
Techopedia on Linkedin
Tweat cdn.techopedia.com
"Techopedia" on Twitter


'@Techopedia'
Sign up for Techopedia's Free Newsletter!

Email Newsletter

Join thousands of others with our weekly newsletter

Resources
The 4th Era of IT Infrastructure: Superconverged Systems
The 4th Era of IT Infrastructure: Superconverged Systems:
Learn the benefits and limitations of the 3 generations of IT infrastructure – siloed, converged and hyperconverged – and discover how the 4th...
Approaches and Benefits of Network Virtualization
Approaches and Benefits of Network Virtualization:
Businesses today aspire to achieve a software-defined datacenter (SDDC) to enhance business agility and reduce operational complexity. However, the...
Free E-Book: Public Cloud Guide
Free E-Book: Public Cloud Guide:
This white paper is for leaders of Operations, Engineering, or Infrastructure teams who are creating or executing an IT roadmap.
Free Tool: Virtual Health Monitor
Free Tool: Virtual Health Monitor:
Virtual Health Monitor is a free virtualization monitoring and reporting tool for VMware, Hyper-V, RHEV, and XenServer environments.
Free 30 Day Trial – Turbonomic
Free 30 Day Trial – Turbonomic:
Turbonomic delivers an autonomic platform where virtual and cloud environments self-manage in real-time to assure application performance.