What is the meaning of transient in JAVA?
Re: About transient
The transient keyword is intended for use in serialization of objects
- flattening an objects state to a stream of bytes that can be saved
to disc, DB or sent, via RMI, to another machine. Marking a state
variable as 'transient' tells the serialization process that the
contents of this variable should _not_ be saved, usually because it is
JVM specific and will need to be reset when the object is deserialized
Examples of variables that would often be marked as 'transient' are
references to :-
- AWT components - due to the underlying native peer references
- Open File handles
On 6 Oct 2000 19:27:00 -0700, "Raja" <firstname.lastname@example.org> did
>What is the meaning of transient in JAVA?
Top DevX Stories
Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL