JAVA source code files are compiled into .class files using a Java compiler. A class file contains bytecode that can be executed by the Java Virtual Machine (JVM). The JVM can be downloaded for every major operating system, including Windows, Mac OS X, and Linux.