What is a native method?

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
Difference between a public and a non-public class
Difference between a public and a non-public class - A class with access specifier ‘public’ can be accessed across the packages...
What is the purpose of the Runtime class?
Purpose of the Runtime class - The java runtime system can be accessed by the Runtime class...
What is the difference between a static and a non-static inner class?
Static and a non-static inner class - Like static methods and static members are defined in a class, a class can also be static...
Post your comment