Stay organized with collections
Save and categorize content based on your preferences.
AI-generated Key Takeaways
UnsupportedClassVersionError is thrown when the Java Virtual Machine (JVM) encounters a class file with an unsupported version.
This error indicates that the class file was compiled with a newer version of Java than the one being used to run it.
It extends ClassFormatError and provides two constructors: one with no detail message and one with a specified message.
Inherited methods provide functionalities for stack trace handling, error messages, and cause analysis, common to Throwable objects.
public class
UnsupportedClassVersionError
extends ClassFormatError
Thrown when the Java Virtual Machine attempts to read a class
file and determines that the major and minor version numbers
in the file are not supported.
Returns an array containing all of the exceptions that were
suppressed, typically by the try-with-resources
statement, in order to deliver this exception.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-07-10 UTC."],[],["`UnsupportedClassVersionError` is thrown when the JVM reads an unsupported class file version. It extends `ClassFormatError`. You can construct this error with or without a detail message. Inherited methods allow for managing stack traces, accessing error details like the message and cause, and methods for printing stack trace information. This class also inherits basic methods for object comparison, cloning, and thread synchronization.\n"]]