Multiple choice technology programming languages

When Java JNI (Java Native Interface) should be used? (Multiple)

  1. To improve memory management.

  2. To achieve Platform independence

  3. To improve the Application performance

  4. If Java API is not available for platform specific operation

  5. For small applications

Reveal answer Fill a bubble to check yourself
C,D Correct answer
Explanation

Java Native Interface (JNI) is used to call platform-specific native libraries when a Java API is unavailable, or to write performance-critical code in C/C++ to optimize application execution speed.