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

Answers were Sorted based on User's Feedback



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

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

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

Answer / ravikiran

native method is used to call the methods declared in a
platform dependent environment.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Core Java Interview Questions

How do u provide security in java

3 Answers  


What is the benefit of inner classes in java?

0 Answers  


What is cr keyboard?

0 Answers  


What is preflight request?

0 Answers  


Differece between class and generic class?

0 Answers   Tech Mahindra,






What is void keyword?

0 Answers  


What is meant by vector class, dictionary class, hash table class, and property class?

0 Answers  


What is System class and its purpose?

2 Answers  


What is the purpose of object oriented programming?

0 Answers  


what is the collable collections in java?

2 Answers   Persistent,


What is static in java?

0 Answers  


What is array pointers ?

0 Answers   Amdocs,


Categories