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 Do You Use Upcasting or Downcasting in Java ?

What is a Singleton Class in Java ?

What is Externalizable Interface in Java ?

What is the Main Benefit of IOC Principle in Java ?

What is the Difference Between Queue and Stack Data Structures in ...