What is a native method?
A native method is a method which is implemented in a non-java language that is targeted for a single machine type. Native methods can pass or return Java objects. To implement the native method, the keyword native is used. The implementation is in another language such as C or C++.
To compile the program which has native method, the following is used:
javac -jni Premium