Non Access Modifiers
static
final
abstract
default
synchronized
volatile
transient
native
- method is implemented in native code using JNI (Java Native Interface).
- Implemented in a language other than Java like C/C++.
- Example: Object.clone()
// taken from real jdk 17 using Intellij
@IntrinsicCandidate
protected native Object clone() throws CloneNotSupportedException;
strictfp
- Deprecated as of Java 17+
- Makes floating point calculation consistent, otherwise JVM can use arbitrary precision
Other keywords
sealed and non-sealed
record