How does Java manage platform independence compared to C?
Java code is compiled once and can run on any machine, while C code must be compiled separately for each operating system.
Nice job! You've accurately described how Java's bytecode enables platform independence, whereas C relies on recompilation for each system.
Can you explain the role of the JVM in making Java platform-independent?