Jemu Ju :
By using javac.exe
, then I get .class
file. Is .class
file byte code? or Does .class
file include bytecode? After compiling .java
in cmd, where is bytecode?
jreznot :
Yes, a Java class file is a file containing Java bytecode that can be executed on the Java Virtual Machine (JVM).
A Java class file is usually produced by a Java compiler from Java programming language source files (.java files) containing Java classes (alternatively, other JVM languages can also be used to create class files). If a source file has more than one class, each class is compiled into a separate class file.
You can see byte code of .class file using one of the tools, such as javap, jd or jd-gui.