Saved Bookmarks
| 1. |
Why Java program is platform independent? |
|
Answer» A Java compiler instead of translating Java code to machine language code, translates it into Java Bytecode. A Java interpreter, called the Java Virtual Machine (JVM), translates the bytecode into machine code and then executes it. The bytecode can be run on any platform as long as it has a JVM running on it. This makes Java programs platform independent and highly portable. ( keywords bytecodes and JVM to be included) |
|