how to use Transient Variables

Hi,can anybody tell how to use Transient Variables in our program .. any sample example..
[103 byte] By [javafreak@suna] at [2007-11-27 4:59:02]
# 1

I do not understand what did you mean with "how to use Transient Variables......"

you declare the variable to be transient to prevent it from being serialized at object serialization proccess. thats only.

but you use your transient variable in normal way just like the non transient ones.

you can declare the variable to be transient like that:

private transient int x;

Good Luck

Ahmad Elsafty

NourElsaftya at 2007-7-12 10:15:12 > top of Java-index,Java Essentials,Java Programming...
# 2
> Hi,> can anybody tell how to use Transient Variables in> our program .. any sample example..If you don't know how to use them, you probably don't need to use them.
-Kayaman-a at 2007-7-12 10:15:12 > top of Java-index,Java Essentials,Java Programming...