What is "Java Native Interface" and how to use it?



What is "Java Native Interface" and how to use it?..

Answer / shilpi agarwal

The Java Native Interface (JNI) is the native programming
interface for Java that is part of the JDK. By writing
programs using the JNI, you ensure that your code is
completely portable across all platforms. It allows Java
code that runs within a Java Virtual Machine (VM) to
operate with applications and libraries written in other
languages, such as C, C++, and assembly.

Is This Answer Correct ?    20 Yes 0 No

Post New Answer

More Core Java Interview Questions

If an object is garbage collected, can it become reachable again?

0 Answers  


Can Applet have constructors?

5 Answers   Infosys,


if arraylist size is increased from initial size what is the size of arraylist...suppose initial is 100 , if i add 101 element what is the size...

10 Answers  


What is return in java?

0 Answers  


When should you make a function static?

0 Answers  






Write a program to find the whether a number is an Armstrong number or not?

0 Answers   Aspire, Infogain,


How to convert string to int in java?

1 Answers  


In which way does a Primitive data type is passed ?

5 Answers   Sun Microsystems,


How do you format in java?

0 Answers  


Can we call the Thread.sleep in Synchyronozed block?

5 Answers   Logica CMG,


What is the difference between inheritance and encapsulation?

0 Answers  


What is anagram word?

0 Answers  


Categories