Ankur kothari wrote:i dont understand native....
Native methods are methods that are not implemented in
Java, but in some platform-specific way (for example in a platform-specific library such as a DLL, written in C, C++ or some other programming language).
The compiler won't complain when you compile this (try it yourself!), but if you try to run the compiled program and the Java runtime environment cannot find the native method in any platform-specific library, you'll get an UnsatisfiedLinkError.
You can write native methods yourself using
JNI.