// read this class and super class: short this_class_index = input.readShort(); short super_class_index = input.readShort(); System.out.println("This class = " + this_class_index); System.out.println("Super class = " + super_class_index);
根据this class的index可以从constant pool中得到这个class的信息,super class也一样。每个class都有super class,只有Object的super class index=0。