-
About transient
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
and recreated
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
- Threads
HTH
On 6 Oct 2000 19:27:00 -0700, "Raja" <awaragi@hotmail.com> did
scribble:
>
>What is the meaning of transient in JAVA?
--
Kim
Kim Fowler
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
Forum Rules
|
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
|
Bookmarks