This isn't really an interface question, it's an implementation question.
The interface simply defines a particular method signature.
In the class, you are implementing that method. You are using a native method for the actual implementation. When you compile, the
native keyword tells the compiler "Hey, don't worry about compiling this method, it's not written in
java. I promise you'll find it *someplace* when I run it. Honest."
But since you haven't actually written an implementation for it, or loaded a library, if you try to call it, the VM won't be able to find the implementation, so it won't be able to run that method, so you'll get a runtime error.
If you never try calling the method, then you'll never have a problem, because the VM won't have to look for the method implementation.
Rob
[ January 30, 2002: Message edited by: Rob Ross ]