what is the use/perpose of having a method antive?

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


Please Help Members By Posting Answers For Below Questions

Where are variables stored?

546


Can a abstract class be declared final?

560


Why do we override tostring method in java?

494


What is the reason behind using constructors and destructors?

551


Can we override compareto method?

496






What is substring in java?

615


What are kinds of processors?

561


Difference between notify() method and notifyall() method in java?

545


What does java se mean?

584


What is the difference between integer parseint and integer valueof?

543


What is use of map in java?

509


Why map is used in java?

569


If a method is declared as protected, where may the method be accessed?

528


Explain the access modifiers for a class, method and variables?

649


What is the point of java?

547