Results 1 to 5 of 5

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Senior Member dennis123's Avatar
    Join Date
    Apr 2013

    What is volatile keyword in Java?

    What is volatile keyword in Java?

  2. #2
    Registered User albertocosta's Avatar
    Join Date
    Jan 2016
    Volatile Keyword we only where we do not want cache value of this variable and give a action to always read it from main memory. Most important things it cannot be used with method or class, only used with a variable.

  3. #3
    Registered User
    Join Date
    Sep 2017
    Declaring An unstable java variable means: the quality of this variable will never a chance to be cached thread-locally: all peruses Furthermore composes will try straight should "main memory"; right of the variable goes about Likewise In spite of it may be encased to a synchronized block, synchronized on itself.

  4. #4
    Registered User
    Join Date
    Jun 2016
    The volatile keyword could be used on every kind of variable, either primitive or objects!


  5. #5
    Registered User 24x7servermanag's Avatar
    Join Date
    Jul 2017
    Volatile keywords in the Java are used to stored in the main memory of the Java. Every time the volatile keyword will be read from the computer's main memory. The volatile keyword is guaranteed to work on 32 bit and 64 variables. They used to synchronised by themselves.
    Server Management Company
    India's Leading Managed Service Provider | Skype: techs24x7
    Cpanel Technical Discussions - Lets talk !

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

  Find Web Hosting      
  Shared Web Hosting UNIX & Linux Web Hosting Windows Web Hosting Adult Web Hosting
  ASP ASP.NET Web Hosting Reseller Web Hosting VPS Web Hosting Managed Web Hosting
  Cloud Web Hosting Dedicated Server E-commerce Web Hosting Cheap Web Hosting

Premium Partners:

Visit to discuss the web hosting business, buy and sell websites and domain names, and discuss current web hosting tools and software.