Stories

Ashok rai

15 Apr 2024

In Java, why am I utilizing C or C++? What is .dll file? Is it worth making?
If you're unfamiliar with this technology, Java Native Interface, or JNI, is a standard Java method that enables C and C++ code to communicate with Java code. JNI enables programmers to write native methods to handle situations when an application cannot be written entirely in the Java programming language, e.g. when the standard Java class library does not support the platform-specific features or program library." Accordingly, we can use a C++ library that we need in an Android application and interact with it directly from Java code, and vice versa. Code can be classified as either "Java" or "native" from the perspective of a JVM. Between the two, a clear and platform-neutral interface is established by the Java Native Interface (JNI).

4  

None!