explain the following statement how java ignores the identity of your computer chip?
Answers
Answered by
5
If i am right then you must be talking about the platform independence in java. When we write a program in a language which is not platform independent, the source code(the code written by us) is converted into machine language code. The machine code depends a lot on the platform. Platform is a combination of hardware and software. The hardware is the processor chip. And the software is the operating system. Like Windows and intel platform is called wintel. The machine code of one program written for a particular platform may not run on another platform. But in java the source code is converted into byte code which is platform independent. It is so becouse this byte code is actually machine instruction for java interpreter java virtual machine (JVM).
The JVM is different from ordinary interpreter because it is a 'virtual' machine. This JVM is the virtual processor. This processor is Implemented ON THE TOP of the existing processor. In this way the chip is hidden by JVM, a virtual chip. This virtual chip converts the byte code into the native language of the host machine. The byte code is independent of the platform. Java is hence a platform in itself. JVM helps java in becoming a platform.
The JVM is different from ordinary interpreter because it is a 'virtual' machine. This JVM is the virtual processor. This processor is Implemented ON THE TOP of the existing processor. In this way the chip is hidden by JVM, a virtual chip. This virtual chip converts the byte code into the native language of the host machine. The byte code is independent of the platform. Java is hence a platform in itself. JVM helps java in becoming a platform.
Similar questions
Social Sciences,
8 months ago
Hindi,
8 months ago
Sociology,
1 year ago
CBSE BOARD X,
1 year ago
Social Sciences,
1 year ago
Math,
1 year ago