Java class files

How javac turns Java into bytecode, and how the JVM reads it: a reference built from real class files, every number measured on the JDK itself.

The JDK, measured

Every count on these pages comes from parsing all 7,391 classes of JDK 25.0.5's java.base module with this site's parser: 28,978,624 bytes, 66,382 methods, 1,951,129 instructions and 1,059,609 constants. The largest method is java.lang.Character$UnicodeScript.<clinit>, at 31,917 bytes of bytecode; the deepest operand stack is 78 slots, in sun.security.util.math.intpoly.IntegerPolynomialP521.carryReduce; the biggest switch has 277 cases, in java.lang.CharacterData01.getNumericValue (lookupswitch).