A native method is a Java method whose implementation is provided by non-java code.
public class IHaveNatives
{
native public void Native1( int x ) ;
public native void test();
native static public long Native2() ;
native synchronized private float Native3( Object o ) ;
native void Native4( int[] ary ) throws Exception ;
}
这个例子有全面的NATIVE方法~~要记住呢,不然知道NATIVE是什么,也不一定会用啊~!!