Answer Posted / 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 |
Post New Answer View All Answers
explain different ways of using thread? : Java thread
What is a classloader in java?
Write a java program to find the route that connects between Red and Green Cells. General Rules for traversal 1. You can traverse from one cell to another vertically, horizontally or diagonally. 2. You cannot traverse through Black cells. 3. There should be only one Red and Green cell and at least one of each should be present. Otherwise the array is invalid. 4. You cannot revisit a cell that you have already traversed. 5. The maze need not be in the same as given in the above example
What is an object in java and how is it created?
Write a program to print count of empty strings in java 8?
Is minecraft 1.15 out?
What are the differences between heap and stack memory in java?
How to create a base64 decoder in java8?
Write a program to find the whether a number is an Armstrong number or not?
Differentiate between static and non-static methods in java.
What is a constructor overloading in java?
What is the difference between equals() and == in java?
What is parsing in java?
Realized?
What do you mean by an interface in java?