What is the Purpose of Native Method in Java ?

The native keyword is used for applying to a method to indicate that the method is implemented in native code using JNI (Java Native Interface).

Therefore, native methods allow Java Developer to directly access platform specific APIs.

Often, native methods are linked to native library..



You May Interest

How remove Method is Implemented in a HashMap in Java ?

What is the Difference Between Abstract Class and Interface in Ja ...

What are the Uses of Reflection in Java ?

What is the Difference Between a Class and an Object in Java ?

Why Do We Use Static Initializers in Java ?