现在知道有个native方法了
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 ;
}
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 ;
}
不过还是不太明白,谁能给我解释一下?