This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Java in General and the fly likes volatile and transient Details Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "volatile and transient Details" Watch "volatile and transient Details" New topic
Author

volatile and transient Details

Ashok Srinivasan
Greenhorn

Joined: Jun 24, 2004
Posts: 15
Details About volatile and transient
Julian Kennedy
Ranch Hand

Joined: Aug 02, 2004
Posts: 823
Volatile, Transient, Manual (noun).

Tips:
  • Ask a question if you want an answer.
  • You're likely to get out what you put in.
  • You'll appear less rude if you use words like "please" and "thankyou".


  • bonus link
    Ilja Preuss
    author
    Sheriff

    Joined: Jul 11, 2001
    Posts: 14112
    Good tips - for more see http://www.catb.org/~esr/faqs/smart-questions.html


    The soul is dyed the color of its thoughts. Think only on those things that are in line with your principles and can bear the light of day. The content of your character is your choice. Day by day, what you do is who you become. Your integrity is your destiny - it is the light that guides your way. - Heraclitus
    Mani vannan
    Ranch Hand

    Joined: Aug 21, 2004
    Posts: 185
    Hi !

    Volatile:
    A variable is defined as volatile, when its value keep on changing frequently.Also its used in shared memory application.The volatile varaible cant be cached in a temporary register , so each time the the machine should go to the location & fetch the value of volatile.

    transient:
    A variable which is the absent at the persistence state of the object is defined as transient type .

    By
    P.Manivannan,
    Network Computing & System Engg Group,
    India.


    Manivannan
     
    Don't get me started about those stupid light bulbs.
     
    subject: volatile and transient Details
     
    Similar Threads
    Valid Variable modifiers ?
    What's NOT In The Exam
    variables difference
    keywords
    Transient and volatile variables ?