Bonjour,
J'ai lu dans le SCJP 6 ceci:
Est ce qu'une variable d'instance ne peut pas être marqué volatile?For the exam, you need to know that instance variables
■ Can use any of the four access levels (which means they can be marked with
any of the three access modifiers)
■ Can be marked final
■ Can be marked transient
■ Cannot be marked abstract
■ Cannot be marked synchronized
■ Cannot be marked strictfp
■ Cannot be marked native
■ Cannot be marked static, because then they'd become class variables.
Partager