Sometimes it might be useful to have a way to read the class file version of a compiled class to know which version of Java was used to compile that class.
One example of such use case is in the maven-compiler-plugin, where it should be possible to detect the class file version of a previous compilation and compare it with the current version of the target/release, this way it allows to detect if the class needs recompilation or not.