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.
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link:
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