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
Can a class be private?
Which methods cannot be overridden in java?
What is the synonym of framework?
What is finalize method?
What is the instance of an object?
Is singleton set an interval?
Explain the difference between string, stringbuffer and stringbuilder in java?
Can we write class inside a class in java?
What is the difference between class & object?
What is a string token?
Who is founder of java?
In how many ways we can do synchronization in java?
Explain Basics of OOP Language in java
Can we catch more than one exception in a single catch block?
What methods are used to get and set the text label displayed by a button object?