first jni example

I never tried JNI(Java Native Interface) before. jni is an api for to call native C code from inside a java code. for a principle I dont like this kind of mixed things. calling java inside c# or calling C# code from C++ is always makes hard codes to understand. anyway I was wondering about the performance of printf between java and jni. basically there are 2 codes. one is written in java one is written in C. here is our C code ...

October 10, 2015 · 2 min · Özkan Pakdil