This week's book giveaway is in the Big Data forum.
We're giving away four copies of Elasticsearch in Action and have Radu Gheorghe & Matthew Lee Hinman on-line!
See this thread for details.
The moose likes Java in General and the fly likes modifiers Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Elasticsearch in Action this week in the Big Data forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "modifiers" Watch "modifiers" New topic
Author

modifiers

rajesh ramalingam
Greenhorn

Joined: Dec 15, 2002
Posts: 1
Why cannot a variable be final and volatile?
David Weitzman
Ranch Hand

Joined: Jul 27, 2001
Posts: 1365
volatile specifies some subtleties about the order of modifying and accessing a field in multithreaded environments, but since a final field never changes value the access order doesn't really matter.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: modifiers