Java中的native关键字是什么? [英] What is the native keyword in Java for?
本文介绍了Java中的native关键字是什么?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
在播放这个谜题(这是一个Java关键字琐事游戏)时,我遇到了 native
keyword。
While playing this puzzle (It's a Java keyword trivia game), I came across the native
keyword.
Java中的native关键字用于什么?
What is the native keyword in Java used for?
推荐答案
native
关键字应用于方法,以指示该方法是使用JNI(Java Native Interface)在本机代码中实现的。
The native
keyword is applied to a method to indicate that the method is implemented in native code using JNI (Java Native Interface).
这篇关于Java中的native关键字是什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文