Results 1 to 4 of 4

Thread: What is volatile keyword in Java?

  1. #1
    Registered sulbha's Avatar
    Join Date
    Dec 2014
    Location
    Bangalore
    Posts
    312

    What is volatile keyword in Java?

    What is volatile keyword in Java?

  2. #2
    Registered
    Join Date
    Nov 2017
    Location
    Sao Paulo
    Posts
    136
    The volatile keyword in Java is poorly documented, poorly understood, and rarely used.volatile is used to indicate that a variable's value will be modified by different threads.

  3. #3
    Registered
    Join Date
    Oct 2016
    Posts
    261
    Volatile variable in Java is a special variable which is used to signal threads, compiler that this particular variables values is going to be updated by multiple thread inside Java application. By making a variable volatile using volatile keyword in Java,application programmer ensures that its value should always been read from main memory and thread should not used cached value of that variable from there own stack.
    Best Android Training | Devops Training | SQL Server Training and many more IT courses.

  4. #4
    Registered
    Join Date
    Jan 2018
    Posts
    16
    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.

Similar Threads

  1. What is The Difference Between Keyword Planner or Keyword Research..?
    By swatijain2233 in forum Search Engine Optimization
    Replies: 4
    Last Post: 11-24-2017, 10:29 PM
  2. looking for java vps
    By Paul-Henri in forum Web Hosting & Servers
    Replies: 4
    Last Post: 12-30-2015, 04:57 AM
  3. Difference between Keyword Proximity And Keyword Density
    By Nexevo Technologi in forum Search Engine Optimization
    Replies: 0
    Last Post: 12-22-2015, 04:33 AM
  4. Keyword_Keyword and Keyword-Keyword, any difference?
    By organ in forum Search Engine Optimization
    Replies: 3
    Last Post: 03-07-2006, 08:37 AM
  5. java help
    By VietBoyVS in forum Website Programming & Databases
    Replies: 3
    Last Post: 05-01-2004, 01:49 PM

Bookmarks

Posting Permissions

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