Java JNI Question:
Download Questions PDF

Explain the advantages and disadvantages of using JNI?

Answer:

Advantages of JNI

Using JNI, we can access c and c++ code which adds performance boost to JAVA.
JNI allows JAVA to access some hardware features using other languages like c and c++.

Disadvantages of JNI

JNI uses native languages which mean it has portability issue.
Code debug is big problem for the developers who use JNI features in JAVA.

Download Java JNI Interview Questions And Answers PDF

Previous QuestionNext Question
What is finalize()? Is finalize() similar to a destructor?What is Native Interface in JAVA?