|
|
|
|
|
by Strs2FillMyDrms
1480 days ago
|
|
My question (if I may), When people say the bytecode is "platform independent" I ask, exactly what platform is it being freed from? The compiler?
The "cloud"? And this goes back to my lack of understanding of what "publishing" a package means to Oracle and the ecosystem in general. If I publish something on Maven, my guess is that it is transformed into bytecode directly, so that when I pull my package from a diff device the code can run.
In this case if the entire "internet" collapses then the only way to run my code would be a flashdrive with the .java file run via a compiler... unless there is a machine that has the JVM installed WITHOUT the compiler... THEN the bytecode is useful... Am I correct? |
|
The compiler turns Java source into bytecode. The JVM runs the bytecode. The JVM doesn’t need the compiler to run.