Skip to main content

Posts

Showing posts from April, 2018

Internal Processes of Java Program

We already know that a java file i.e. the source code is to be converted into class file i.e. byte code.  Byte code is a highly optimized set of instructions designed to be runned/executed by something called Java Virtual Machine, the JVM. Earlier or you can say, originally JVM was only the interpreter for byte code. Why is Java needed?          Java solved the major problem of security and portability by converting the source code into bytecode. this bytecode can be executed anywhere provided JVM is implemented. The execution of bytecode or class file  by the JVM is the most simple way to create portable programs.                  Bytecode also makes Java, secure. Since there is only one condition for a java file(here bytecode) to execute successfully that is JVM should be implemented into the machine where the bytecode is going to be executed.  Without JVM, bytecode is not going to be ...