A Native Class
public class HelloWorld {
public native void hello();
static { System.loadLibrary(“nativeHello”); }
}
Can use this class in the normal way:
public class Test {
public static void main (String args []) {
HwlloWorld h = new HelloWorld();
h.hello();
}
}
5
Previous slide
Next slide
Back to first slide
View graphic version