Java does not compile a program directly to machine code, it translates a program to an intermediate code named bytecode, which is later interpreted by JVM to respective machine codes. Thus, a single program can be run on any platform. This is why Java is called platform independent.



0 comments:
Post a Comment