0
What are native methods in java
java
4 Answers
+ 1
Usually it's used for heavy tasks. Imagine a game which uses Java for the structure and C++ for complex calculations. You'll have the high-level advantages of Java combined with the better performance of C++
0
Native code is code that doesn't run in the JVM. With JNI (Java Native Interface) you can run for example c or c++ code.
https://en.m.wikipedia.org/wiki/Java_Native_Interface
0
very well...
but what is its usses in java?
0
thanks