If you wanna know more about native methods, here you go (Please note that it is not needed for
SCJP exam)
In Java, it is possible to call a C/C++ program from a Java program and a Java program from C/C++ program. The first job can be done by declaring the Java method as native and give the implementation in C/C++.
To call a Java program from C/C++ program, you got to instantiate the 'Java Virtual Machine' and it can do all the things for you. The Invocation API has number of methods for interaction between the two programs.