This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
transient is not allowed in interfaces. It only makes sense for instance fields. Fields in an interface are automatically public static and final. ___________________________________________________ "strictfp - only for class and methods not for variables" True ____________________________________________ synchronized methods only True _____________________________________________ volatile is used to ensure that the changes to a primitive field, made by one thread, are always visible to others threads. It is like having synchronized the accessor and mutator methods of the field. In the case the accesses to a variable occur through several threads, and they are not synchronized; declaring the variable as volatile --as an alternative to synchronizing the accesses-- might mean an advantage in performance.