aspose file tools*
The moose likes Beginning Java and the fly likes Transient Modifier Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Transient Modifier" Watch "Transient Modifier" New topic
Author

Transient Modifier

Adrienne Jeyapriya
Greenhorn

Joined: Sep 25, 2000
Posts: 8
Hi,
I'm a software professional..working in mainframes.
got interested in Java and i'm in the learning process.
I would like to know what Transient Modifier is..in simple terms.
regards
Priya
Vim Win
Greenhorn

Joined: May 01, 2004
Posts: 21
Hi priya,
Transient modifier is use for Serialization purposes. (If you dont get what is serialization, donot puzzle). When you want to write an object to a storage and retrieve back, you need to implement a interface called serializable. This will make your object to be written to the storage properly and retrieved back in the same way.
In some cases, some variables or data members of your object should not be written to storage. For example, password details to be entered everytime. In this case, you declare the member to be off type Transient. This will make the serialiasation proper. i.e. Except those members all others are written to the storage and while reading back only those that were written are only read.
I hope the modifier is clear to you now.
Bye.
JVRN.

Originally posted by Adrienne Jeyapriya:
Hi,
I'm a software professional..working in mainframes.
got interested in Java and i'm in the learning process.
I would like to know what Transient Modifier is..in simple terms.
regards
Priya

paul wheaton
Trailboss

Joined: Dec 14, 1998
Posts: 20692
    ∞

PROPER NAMES ARE NOW REQUIRED!
See http://www.javaranch.com/ubb/Forum10/HTML/000180.html for details.

permaculture Wood Burning Stoves 2.0 - 4-DVD set
Adrienne Jeyapriya
Greenhorn

Joined: Sep 25, 2000
Posts: 8
thanks vijay...
that helped me a lot
priya
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Transient Modifier