This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Programmer Certification (SCJP/OCPJP) and the fly likes why valatile variables can not be final.? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Certification » Programmer Certification (SCJP/OCPJP)
Bookmark "why valatile variables can not be final.?" Watch "why valatile variables can not be final.?" New topic
Author

why valatile variables can not be final.?

Prashant Neginahal
Ranch Hand

Joined: Dec 04, 2002
Posts: 76
Hi ALL,
why valatile variables can not be final.?


--------------<br />Prashant<br />SCJP-91%
Paul Anilprem
Enthuware Software Support
Ranch Hand

Joined: Sep 23, 2000
Posts: 3253
    
    2
Volatile and final are completely orthogonal properties. Volatile means the variable value is volatile (exteremly changeable) while final means it value will never change.
HTH,
Paul.


Enthuware - Best Mock Exams and Questions for Oracle/Sun Java Certifications
Quality Guaranteed - Pass or Full Refund!
 
jQuery in Action, 2nd edition
 
subject: why valatile variables can not be final.?
 
Similar Threads
Method Inner Classes &Final Variable
why only final variables can be accesed by local class
final variables in method
Static Final Variables Query
Non-final member variables in interfaces