• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Bear Bibeault
  • Liutauras Vilda
Sheriffs:
  • Jeanne Boyarsky
  • Junilu Lacar
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Jj Roberts
  • Tim Holloway
  • Piet Souris
Bartenders:
  • Himai Minh
  • Carey Brown
  • salvin francis

Transient Modifier

 
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Greenhorn
Posts: 21
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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


 
Trailboss
Posts: 23247
IntelliJ IDE Firefox Browser Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
PROPER NAMES ARE NOW REQUIRED!
See http://www.javaranch.com/ubb/Forum10/HTML/000180.html for details.
 
Adrienne Jeyapriya
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
thanks vijay...
that helped me a lot
priya
 
WHAT is your favorite color? Blue, no yellow, ahhhhhhh! Tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
reply
    Bookmark Topic Watch Topic
  • New Topic