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

What are the Differences Between a HashSet and a HashMap in Java ...

How Will You Sort Objects by Natural Order in a Java List ?

How Can We Reference an Unreferenced Object Again in Java ?

Why Did Oracle Release a New Version of Java Like Java 8 ?

What are the Examples of Observer Design Pattern in JDK ?