• 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
  • Devaka Cooray
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Bear Bibeault
Sheriffs:
  • Paul Clapham
  • Knute Snortum
  • Rob Spoor
Saloon Keepers:
  • Tim Moores
  • Ron McLeod
  • Piet Souris
  • Stephan van Hulst
  • Carey Brown
Bartenders:
  • Tim Holloway
  • Frits Walraven
  • Ganesh Patekar

volatile and transient Details

 
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Details About volatile and transient
 
Ranch Hand
Posts: 823
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
     
    author
    Posts: 14112
    • Mark post as helpful
    • send pies
    • Quote
    • Report post to moderator
    Good tips - for more see http://www.catb.org/~esr/faqs/smart-questions.html
     
    Ranch Hand
    Posts: 185
    • Mark post as helpful
    • send pies
    • Quote
    • Report post to moderator
    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.
     
    It is sorta covered in the JavaRanch Style Guide.
    • Post Reply Bookmark Topic Watch Topic
    • New Topic
    Boost this thread!