class file

The file javac writes for each class, holding that class's bytecode plus a description of its fields and methods.

In more detail

A class file is not machine code for your processor; it is a portable binary format defined by the JVM specification. It records a class file version, so a JVM can refuse a file built for a newer Java release. Class files are what a JAR packages and what the JVM loads.

Examples

javac Hello.java  # writes Hello.class
ls *.class

Related terms

Taught in

References