The following static code segment loads a library whih contains the implementation of native method defined in the Java class.

Java Code:
static {
    System.loadLibrary("hello");
}
The loaded library maps the implementation of the native method to its definition.