ALERT

[WEBINAR] Building a Business-Driven Data Architecture

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

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
Free Whitepaper: The Path to Hybrid Cloud
Free Whitepaper: The Path to Hybrid Cloud:
The Path to Hybrid Cloud: Intelligent Bursting To Amazon Web Services & Microsoft Azure
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.