File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Java in General and the fly likes Transient Variables Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Java in General
Bookmark "Transient Variables" Watch "Transient Variables" New topic

Transient Variables

Kush Kush

Joined: Apr 27, 2004
Posts: 11
What is the use of transient variables ? When shouls variable be declared transient ? Do it have any demerits ?

Smile with JAVA
Tim West
Ranch Hand

Joined: Mar 15, 2004
Posts: 539
Transient variables aren't included in the object stream when an object is serialised.

I agree. Here's the link:
subject: Transient Variables
It's not a secret anymore!