BYECODE AND MACHINE CODE | BCA SEM 04 JAVA BKNMU JUNAGADH

 


Bytecode

Bytecode is an intermediate representation of a program that lies between the source code and machine code. It is generated by compilers for certain programming languages, such as Java or Python, and is designed to be executed by a virtual machine (e.g., the Java Virtual Machine or Python interpreter).

Key Features of Bytecode:

§  Platform Independence:

§  Efficiency

§  Security

§  Portability

§  When a Java program is compiled, the .java file is converted into a .class file containing bytecode. The Java Virtual Machine (JVM) then executes this bytecode on the target machine.

·         It technically a type of machine code. but it is not binary

·         is machine code built for the JAVA VIRTUAL MACHINE (JVM)

·         is the .class file that was compiled from java code using the command

·         javac program.java

·         can be run on any machine that has the JVM installed using the command

·         java program

machine code

Machine code is the lowest-level programming language, consisting of binary instructions (0s and 1s) that a computer's central processing unit (CPU) can directly execute. It represents the fundamental operations that the hardware can perform, such as arithmetic, data movement, and logic operations.

·         the lowest level of code. Also Known As binary code

·         syntax of the machine code varies depending on CPU and computer’s Operating system

 

Binary code

·         is the ones and zeros that can be read by the central processing unit (CPU) of the machine, hence the name machine language.




Post a Comment

Thanks for comment.

Previous Post Next Post