What are the modifiers?

  • Access modifiers: private, protected, public (details in the #Classes section)
  • Modifiers for multithreading synchronized and volatile (more on this later)
  • static (details in the #Classes section)
  • final
  • abstract (details in the #Classes section)
  • native – Indicates that the method implementation is hidden inside the JVM and cannot be specified in user code
  • transient – Indicates that the field will be skipped during serialization
  • strictfp – The most exotic, restricts the precision of floating-point calculations to the IEEE standard for consistency across platforms.