SuprBay: The PirateBay Forum

Full Version: Regarding to Purpose for .class files in Java
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hello All, I am working on client project and I am trying to understand how .class files work in java and what's their purpose. I found some information online, but I get unsatisfying explanations. As soon as we run the compiler on Interviewbit online and we get the .class file, which is bytecode. Is this machine-readable or not? 

And if not, this is why we need the interpreter for the program to run successfully? Likewise, since the .class record is what could be compared to our .java programs, for what reason would someone be able to run a java program straight away simply by running the .class document utilizing VM and they could have to have the .java record also?
Yes, it's machine-readable.

The javac command compiles the .java file and converts it to .class.

More about it here: https://docs.oracle.com/javase/7/docs/te...javac.html

An interpreter has nothing to do with this.