Skip to content

Instantly share code, notes, and snippets.

@suvasish114
Created May 8, 2021 08:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save suvasish114/b6066a122dc5e1d826705f9bedabd347 to your computer and use it in GitHub Desktop.
Save suvasish114/b6066a122dc5e1d826705f9bedabd347 to your computer and use it in GitHub Desktop.
class NativeDemo{
public static void main(String[] args){
NativeDemo ob = new NativeDemo();
ob.test(); // call to native method
}
public native void test(); // native method without body
static{
System.loadLibrary("NativeDemo");
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment