7)What is JNI?
JNI is an acronym of Java Native Interface. Using JNI we can call
functions which are written
in other languages from Java. Following are its advantages and disadvantages.
Advantages:
• You want to use your existing library which was
previously written in other
language.
• You want to call Windows API function.
• For the sake of execution speed.
• You want to call API function of some server product which is in c or c++
from java
client.
Disadvantages:
• You can’t say write once run anywhere.
• Difficult to debug runtime error in native code.
• Potential security risk.
• You can’t call it from Applet.
Do'stlaringiz bilan baham: