java native modifier
1. "native" is a modifier applicable only for methods and we cannot apply anywhere else. 2. The methods which are implemented in non-java (C or C++) are called native methods. 3. The main objective of native modifier are:-
- Improve performance of the system.
- To achieve machine level or memory level communication.
- To use already existing legacy (non-java) code.