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 Uses of Optional in Java ?

What are the Different Scopes of a JSP Object ?

What is Externalizable Interface in Java ?

What is the Importance of hashCode and equals Methods in Java ?

How Can You Determine If Your Program Has a Deadlock in Java ?