Results 1 to 8 of 8

  1. #1

    Default What is volatile keyword in Java?

    What is volatile keyword in Java?

  2. Default

    It means, value of the variable cant be cached thread-locally.

  3. #3


    The volatile keyword could be used on every kind of variable, either primitive or objects.

  4. #4


    A volatile variable will instruct JVM threads to read value of volatile variable from main memory and don't cache it locally. If a variable is not shared between multiple threads no need to use volatile keyword with that variable.
    Get your Emails validated by ZeroBounce
    ZeroBounce - Validate your E-mails

  5. #5


    Volatile is applied to a variable when it is declared. It tells that value can change at any time.

  6. #6


    Declaring a volatile Java variable means: The value of this variable will never be cached thread-locally: all reads and writes will go straight to "main memory"; Access to the variable acts as though it is enclosed in a synchronized block, synchronized on itself.
    Cheap VPS Hosting | VPS Starting from $1
    Cpanel Dedicated Server |
    Free IPMI
    Windows VPS |
    Windows with Remote Desktop

  7. #7


    volatile keyword in java- It changes the variable accross threads. The value of the variable will not be hiding the thread-locally, the data of all read and write threads will go directly into the main-memory, and it can be enclosed to adjust the access to the variable.

  8. #8

    Default Volatile?

    "Volatile” tells the compiler that the value of a variable must never be cached as its value may change outside of the scope of the program itself.

Similar Threads

  1. Replies: 1
    Last Post: 11-11-2013, 02:12 AM
  2. In google adwords keyword tool why does a keyword search for magnetic bracelets show
    By watson.johe86 in forum Internet Marketing, SEO, PPC, Web Development Forums
    Replies: 0
    Last Post: 04-26-2013, 10:50 AM
  3. Replies: 2
    Last Post: 06-06-2012, 09:45 AM
  4. What is diffrence between exact keyword and broad keyword research?
    By poucanet in forum Internet Marketing, SEO, PPC, Web Development Forums
    Replies: 2
    Last Post: 11-17-2011, 20:56 PM
  5. Replies: 0
    Last Post: 10-28-2011, 02:19 AM


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
| UKC | VPS Germany | Webmaster Marketplace | Web Hosting Forum | Domain Name Forum | VPS Forum | Webmaster Forum | Website Design Forum | Sites For Sale |