How to use c/c++ code in JAVA
Answer Posted / jaya prakash
Java Native Interface
is only correct ans.
it provide JNI.H header file.
only use method in java.
then
use the run command
javah -jni classname,
it creates classname.h header cpp file
we produce classname.cpp file
and
use run command
cl /LD classname.cpp
it produces .dll file
then
we compile and run java file
without using these steps u can't compile or run it.it
produces error because the method used in java is not
defined,,,
| Is This Answer Correct ? | 25 Yes | 3 No |
Post New Answer View All Answers
What is scanf () in c?
What are the advantages and disadvantages of a heap?
What does %p mean?
a linearly ordered set of data elements that have the same structure and whose order is preserved in storage by using sequential allocation a) circular b) ordinary c) array d) linear list
How can I make sure that my program is the only one accessing a file?
What is line in c preprocessor?
What do you mean by invalid pointer arithmetic?
Tell me what is null pointer in c?
How do you define structure?
a formula,a series of steps,or well defined set of rules for solving a problem a) algorithem b) program c) erdiagram d) compiler
What is sizeof array in c?
What is the scope of global variable in c?
a number whose only prime factors are 2,3,5, and 7 is call humble number,,write a program to find and display the nth element in this sequence.. sample input : 2,3,4,11,12,13, and 100.. sample output : the 2nd humble number is 2,the 3rd humble number is 3,the 4th humble number is ,the 11th humble number is 12, the 12th humble number is 14, the 13th humble number is 15, the 100th humble number is 450.
Write a code to generate divisors of an integer?
How are pointers declared in c?