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 Similarities Between HashSet and HashMap in Java ?

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

What is the Use of Jsp:useBean in JSP ?

What is the Use of a Dictionary Class in Java ?

Why Do We Use finalize Method in Java ?