File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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
JavaRanch » Java Forums » Java » Java in General
Bookmark "modifiers" Watch "modifiers" New topic


rajesh ramalingam

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.
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
subject: modifiers