Java调用第三方dll文件的使用方法 public class OtherAdapter { static { //System.loadLibrary("Connector");//载入需要调用的dll Connector.dll System.load("d://Connector.dll");//载入dll Connector.dll } //用native关键字修饰将被其它语言实现的方法 //dll文件中对应的函数声明 public native stat
public class SuperClass{ public void printA(){ System.out.print("SuperClass-printA"); printB(); } public void printB(){ System.out.print("SuperClass-printB"); } } public class ChildClass extends SuperClass{ public void printA(){ System