on examlab test 3, reviewing my answers, I've read that volatile is a keyword applicable only to instance variables.
In fact, this is false, because if you try to compile a program with a static volatile variable, the program perfectly compile, and also in the javadoc there are sun examples of static volatile variables:
Can someone confirm this to me ?
Thanks for the feedback, and sorry, I didn't see this post before
Can you please tell me the question number where you found this problem - if so, I can make it correct with the next release of ExamLab. For me, I couldn't find a statement like that in practice exam 3.
The transient modifier applies only to instance variables.
The volatile modifier applies only to instance variables.
As stated also in the url you given by Emanuele:
FieldModifier: one of
public protected private
static final transient volatile
Im not sure if this should be on a separate thread .