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
Take an MxN matrice from user and then sum upper diagonal in a variable and lower diagonal in a separate variables. Print the result
Explain what are its uses in c programming?
What are the rules for the identifier?
Why do some versions of toupper act strangely if given an upper-case letter?
Why is c called a structured programming language?
What are identifiers and keywords in c?
what type of questions arrive in interview over c programming?
Do you know the difference between exit() and _exit() function in c?
if (i = 0)printf ("True"); elseprintf("False"); Under what conditions will the above print out the string "True" a) Never b) Always c) When the value of i is 0 d) all of the above
Is c easy to learn?
What is the use of pointers in C?
What is the use of #define preprocessor in c?
What is string length in c?
How are pointers declared in c?
What are the different types of endless loops?