How to view JDK version compiled by class file

Check the jdk version compiled by the class file as follows:

First open the cmd command line window and enter the following instructions:

Will output some information, roughly as follows:

Compiled from HtmlCrawer.java.

The public class org.eagleeye.html.HtmlCrawer extends java.lang.Object

Source file: "HtmlCrawer.java"

Minor version: 0

Major version: 50// This is the version information of jdk.

The version of jdk can refer to the following comparison table: