- Bytecode may be defined as a highly optimized set of instructions
designed to be executed by java run time system.
- JVM may be refered to as the interpreter for bytecode.
- Translating a java's program into bytecode helps make it easier to run in a wide variety of environment as only JVM needs to be implemented.
- But remember , the details of the JVM will differ from platform
to platform , all interpret the same java bytecode.
- If program was compiled to native code , then different versions of same program would have to exist for each type of CPU connected to the internet , which is not feasible.
- So this hepls in creating portable programs.
By: Knowledge Bits
No comments:
Post a Comment