How .class file makes java independent?
<p>I have been reading everywhere that .class file is independent of the platform.
    On one post I read that  OS+PROCESSOR=PLATFORM. The main purpose of JVM is to produce the corresponding machine code from ".class" file.
Machine codes are for only "PROCESSORS" to understand and "not OS"
    So,why is there different flavours of JVM based on OS? What OS has anything to do with machine codes?</p>

<p>Pls make me understand</p>
