what is the use/perpose of having a method antive?
Answers were Sorted based on User's Feedback
Answer / imtiyaz
if you want to call a methods which are specific to the
platform or if you want to use the OS calls or if you want
to use functionality which is developed in other language
we go through native interface.
In a real world we need to execute statements which are
specific to platform which java may or may not do, and
other language can do much faster than java at that time we
use to write the methods in that language and use that code.
And sometimes the code already developed in other language
and it is very cost effective or time consuming to convert
the code into java at that moments also we use java native
interface.
| Is This Answer Correct ? | 2 Yes | 0 No |
Answer / ravikiran
native method is used to call the methods declared in a
platform dependent environment.
| Is This Answer Correct ? | 0 Yes | 0 No |
define the terminology association.
What is heterogeneous in java?
What is the difference between JDK and JVM?
What is the difference between a synchronized method and a synchronized block?
What is a Java Virtual Machine?
Can we override compareto method?
What is the difference between call by reference and call by pointer?
How do you check whether the list is empty or not in java?
Do you know why doesn't the java library use a randomized version of quicksort?
What is type inference in java8?
what is purpose of writting public static void main(Strind arg[]) in java..?
What is the use of volatile in java?