Class VerifyError in Java

digitization, transformation, binary

Class VerifyError in Java

VerifyError is thrown from an application when verifier detects that the class file through well-formed, contains some sort of internal inconsistency or security problems.

In other words, it signals that bytecode verification could not be passed for a class.

Ads code goes here

A VerifyError is thrown when the byte-code verifier detects that a class file, though well-formed, contains some sort of internal inconsistency or security problem.

As part of loading the byte-codes for a class, the Java virtual machine may run the .class file through the byte-code verifier. The default mode of the virtual machine causes it not to verify classes that are found locally, however. Thus, after compiling an applet and running it locally, we may still get a VerifyError when we put it on a web server.

The structure of the class VerifyError is given as:

public class java.lang.VerifyError extends java.lang.LinkageError{
public VerifyError();//constructs an empty VerifyError object that is an object with no message specified.
public VerifyError(String message);//constructs an VerifyError object with the message specified.}

The class VerifyError also inherits methods from class Object and Throwable.

From Object classFrom Throwable class
wait(long, int)getLocalizedMessage()

Share and Enjoy !

READ  Abstract Interface Member in Java

Leave a Comment

Your email address will not be published. Required fields are marked *