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 we compare two strings in java?
Highest level event class of the event-delegation model?
Where is the find and replace?
What does singleton mean in java?
How to sort a collection of custom Objects in Java?
Can you change array size in java?
What is files manifesting?
What are different types of control structures?
Is there any way to find whether software installed in the
system is registered by just providing the .exe file?
I have tried the following code but its just displaying the
directory structure in the registry.
Here the code :
package com.msi.intaller;
import java.util.Iterator;
import ca.beq.util.win32.registry.RegistryKey;
import ca.beq.util.win32.registry.RootKey;
public class RegistryFinder {
public static void main(String... args) throws Exception
{
RegistryKey.initialize(RegistryFinder.class.getResource("jRe
gistryKey.dll").getFile());
RegistryKey key = new RegistryKey(RootKey.HKLM,
"Software\\ODBC");
for (Iterator
Is void a wrapper class?
What's the purpose of static methods and static variables?
What an i/o filter?
What class allows you to read objects directly from a stream in java programming?
What is json parser in java?
What is final class?