About transient

DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 2 of 2

Thread: About transient

  1. #1
    Raja Guest

    About transient

    What is the meaning of transient in JAVA?

  2. #2
    Kim Fowler Guest

    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


    On 6 Oct 2000 19:27:00 -0700, "Raja" <awaragi@hotmail.com> did

    >What is the meaning of transient in JAVA?


    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
HTML5 Development Center
Latest Articles
Questions? Contact us.
Web Development
Latest Tips
Open Source

   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center