What is JNI?

What is JNI?

- JNI stands for Java Native Interface. It is an interface between Java, applications and libraries that are written in other languages. JNI is solely used to interact with “native” code (code written in system level language such as C). For instance, JNI enables the usage of C libraries and C programs to be used in Java programs.
Define JNI functions and pointers
JNI functions are those which are used by the developers to interact with JVM within a native method....
Describe exception handling in JNI
JNI exceptions can be handled by using C++ exception handling. Using throw and catch blocks of C++ and invoking those methods through JNI is one of the solutions...
Advantages and disadvantages of using JNI
Developers can take the advantage of Java platform. Legacy code investments need not be abandoned, Interoperability issues can be addressed..
Post your comment