File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Java in General
Joined: Dec 15, 2002
Dec 15, 2002 14:34:00
Why cannot a variable be final and volatile?
Joined: Jul 27, 2001
Dec 15, 2002 16:15:00
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.
Why cant a volatile variable final?
Some basic questions - part 2
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2015