Created
May 8, 2021 08:28
-
-
Save suvasish114/b6066a122dc5e1d826705f9bedabd347 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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