up previous next contents
Next: Methods and parameters Up: Classes and objects Previous: The toString() Method   Contents

Native Methods

  • Used when you need to manipulate some hardware directly, or execute code not written in Java.
  • Portability and safety of the code are lost.
  • Implemented using an API provided by the people who wrote the virtual machine on the platform where the code will run.
  • The standard API for C programmers is called Java Native Interface (JNI).
  • Other API's are being defined for other languages.


up previous next contents
Next: Methods and parameters Up: Classes and objects Previous: The toString() Method   Contents