Explain Exception Handling in JNI

Explain Exception Handling in JNI.

JNI exceptions are handled by using the following:

Throw( ) : Throws an existing exception object. Used in native methods to rethrow an exception.

ThrowNew( ) : Creates a new exception object and throws.

ExceptionOccurred( ) : Determines the exception status of throws and not yet cleared.

ExceptionDescribe( ) : Displays the exception and stack trace

ExceptionClear( ) : A pending exception is cleared.

FatalError( ) : Causes a fatal error to raise and does not return.
What is JNI?
JNI stands for Java Native Interface...
Define JNI functions and pointers
JNI functions are those which are used by the developers to interact with JVM within a native method....
Describe exception handling in JNI
JNI exceptions can be handled by using C++ exception handling. Using throw and catch blocks of C++ and invoking those methods through JNI is one of the solutions...
Post your comment
Discussion Board
Pretty bad way of displaying the answers
For every question there is a link. Not at all handy to read through. one question one click... are u guys doing this to just increase your web hit count.

Disappointing, kills time
Last bencher 06-18-2013