All About Class ClassFormatError in Java



ClassFormatError is thrown from an application when java virtual machine attempts to read a class file and determines that the file is malformed or can not be interpreted as a valid class file.
The structure of the ClassFormatError class is given as:


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

}
 
All About Class ClassFormatError in Java All About Class ClassFormatError in Java Reviewed by Animesh Chatterjee on September 19, 2018 Rating: 5

No comments:

Powered by Blogger.