0

What are native methods in java

java

27th Feb 2018, 3:20 PM
Praveen gupta
Praveen gupta - avatar
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++
27th Feb 2018, 3:44 PM
Alex
Alex - avatar
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
27th Feb 2018, 3:35 PM
Alex
Alex - avatar
0
very well... but what is its usses in java?
27th Feb 2018, 3:38 PM
Praveen gupta
Praveen gupta - avatar
0
thanks
27th Feb 2018, 3:45 PM
Praveen gupta
Praveen gupta - avatar