When we compile the java class, it will be converted to bytecode as .class file. This file able to rn in any platform which have JVM installed in it. No need to compile again in the new platform.
Java says " Compile Once-Run anywhere" as Platform Independence. Only the restriction is JVM should be installed in order to run the file.
Java says " Compile Once-Run anywhere" as Platform Independence. Only the restriction is JVM should be installed in order to run the file.