What are the native methods in Java?

Native methods are the methods whose source code is written in any other languages like C, C++ etc. Native methods are used when that it very difficult to rewrite the already existing code of other programming languages like C, C++ etc in Java. In order to declare a native method native keyword is used like public native method_abc(). This native keyword is used for informing the java compiler that this method has been written in a language other than java.

More Questions

Leave a Reply

Word Verfication * Time limit is exhausted. Please reload CAPTCHA.