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++.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
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.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What are some drawbacks to JNI?

A

JNI programs are not portable.

JNI functions are expensive (loss in performance)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
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.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly