Gaea Times Micro Blog


  • 10:03:50 pm on January 17, 2010 | # |
    Tags: ,

    Nice explanations of volatile modifier and transient modifier in Java -*T*g

    In short use volatile when you want to prevent local caching of member variables by thread. For example to keep a counter across threads, mark it as volatile.

    Use transient when you do not want to serialize the variable.



  • Швейка 10:16 am on November 13, 2010 | #

    Всё изложено с продолжением…

    Текстильно и швееобразно…

Leave a Comment

You must be logged in to post a comment.