Carlos Blanco
Carlos Blanco

Reputation: 8762

Must all JNI methods be static?

Must all the methods that are native be also static??

Upvotes: 0

Views: 3242

Answers (1)

Daniel Trebbien
Daniel Trebbien

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

Related Questions