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

Why Java Provides Garbage Collector ?

What is the Difference Between an ArrayList and a LinkedList Data ...

How Can You Upload a Large File in JSP ?

When is UnsupportedOperationException Thrown in Java ?

How Can We Find the Memory Usage of JVM From Java Code ?