JNI Flashcards
1
Q
What is JNI?
A
Java native interface.
It allows for Java code which is running on a virtual machine to be called by other code like C++.
2
Q
What was does JNI do again?
A
It allows java code which runs in a VM to work with applications and libraries in other languages such as c, c++ and assembly.
3
Q
What are some drawbacks to JNI?
A
JNI programs are not portable.
JNI functions are expensive (loss in performance)
4
Q
How does JNI work?
A
There are static libraries which are linked during execution which increases the executable size. Then theres shared libraries which only have references to the real libraries. they are loaded during runtime.