Reputation: 8762
Must all the methods that are native be also static??
Upvotes: 0
Views: 3242
Reputation: 39208
No, native methods can be non-static
. In fact, here is a JNI tutorial which shows how to natively implement a non-static
method.
Upvotes: 4