Explain Exception Handling in JNI?
Submitted by: AdministratorJNI 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.
Submitted by: Administrator
* 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.
Submitted by: Administrator
Read Online Java JNI Job Interview Questions And Answers
Top Java JNI Questions
☺ | Describe exception handling in JNI? |
☺ | Advantages and disadvantages of using Java Native Interface (JNI)? |
☺ | Explain Exception Handling in JNI? |
☺ | What is Java Native Interface (JNI)? |
☺ | What is Native Interface in JAVA? |
Top Java Programming Language Categories
☺ | Core Java Interview Questions. |
☺ | Hibernate Interview Questions. |
☺ | Advanced Java Interview Questions. |
☺ | IBM WebSphere Interview Questions. |
☺ | Spring Framework Interview Questions. |